ArduinoSort
ArduinoSort copied to clipboard
Easy sorting functions for Arduino, with focus on low memory footprint
Hello, I am attempting to sort a vector of strings using a custom compare func, and I can't seem to find a solution elsewhere. Thanks
How can I change so it works with long data type?
Hi, there could be a possibility to omit the `sizeOfArray` parameter with C++11. [Here](https://stackoverflow.com/a/18078435) is the relevant code snippet on StackOverflow. As it's missing a `const`, [here](https://www.g-truc.net/post-0708.html) is another example...
I think the [tmp variable](https://github.com/emilv/ArduinoSort/blob/bb1d4d3adc6d5044749923009d23eaa29ad9ecdb/ArduinoSort.h#L36) should be moved out from the inner loop. The current implementation moves the selected element by swapping, instead of writing it once where it should...