Quote Originally Posted by renderhjs
otherwise you could write your own bubblesort function- can´t be so difficult
mergesort would probably be your best bet if you're looking for efficiency.

A simple google search should lead you to the right direction, if you need to implement your own.

I was looking on google.. but I'm not really sure how to find how the methods are implemented in AS3.

I know that in Java.. the sort method.. uses mergesort.. and in order to do something like 'sorton'.. you just have to implement a Comparable interface and change the method to how you want to compare the objects.

And I know in PHP and PERL, you can also customize how arrays are compared through the sort method.

Not sure if that's possible in AS3.