[MX04] [AS2] Sort an array by integers?
So, I think I'm going to have to end up writing a custom function for this, but I wanted to check here first to make sure I'm not doing a ton of work for nothing.
The array.sort() function does a fine job of sorting array by the value of the string, but when it comes to putting numbers in the right order it falls short because it tries to sort them as strings.
So the array [5,7,14,300] would end up sorted as [14,300,5,7] which is obviously not what I want.
So is there any way to get it to sort only based on the integer property or there an entirely different function that can do what I want?