Flash Cookbook - Appendix - Sort array indices
Yes. This is about array sorting. So there is the problem, that we want to sort an array, but want to know more about the indices. For this reason there is an option for Array.sort() function, which specifies the return value of sort():
See the code below:
var array:Array = ["a", "c", "b"];
var sort:Array = array.sort(Array.RETURNINDEXEDARRAY);
It didn't sort the array, but returned an array with the sorted indices.