I am trying to find out how to sort an array of number by decimal. I am this array
[9, 9.10, 9.2, 9.3, 9.4, 9.5, 9.6, 9.7, 9.8, 9.9]
By using sort 9.1 is before 9.2 but what I neeed is to have 9.1 after 9.9 so the order will be as below:
9, 9.2, 9.3, 9.4, 9.5, 9.6, 9.7, 9.8, 9.9, 9,10
How can I force doing that?
Thanks