Hi,
I have this array of objects, each element of the array contains 3 properties, (link:String, level:Number, Count:Number). I want to sort my array ascendingly based on the 'level' property. Any idea how to do that?
Best Regards
Printable View
Hi,
I have this array of objects, each element of the array contains 3 properties, (link:String, level:Number, Count:Number). I want to sort my array ascendingly based on the 'level' property. Any idea how to do that?
Best Regards
Hi,
I believe you should be able to just use the sortOn method:
myArray.sortOn("level");
Hope that helps.