sorting a String array?
in
Programming Questions
•
1 year ago
I am trying to sort a string array and am not getting the right order:
- String[] a = { "1.105", "23.805", "29.31", "53.6", "105.217", "10.896307" };
- a = sort(a);
- println(a);
{1.105, 10.896307, 105.217, 23.805, 29.31, 53.6}
I am using a string array rather than a float array since I'm using loadStrings to load values from a text file.
1