In AS3, Array.sort() took some good sorting options, such as:
- Array.DESCENDING - Sorts an array of large and small
 - Array.RETURNINDEXEDARRAY - Returns an array of indices so you can keep track of which item has been sorted, where
 
But unfortunately, Vector<T>.sort() does not support these functions and simply accepts the compareFunction:Function argument so that you can write your own sorting logic.
Is there any other way to quickly get a sorted indexed array of a vector?
source share