Sorting in Descending Order
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var aEmployees:Array = ["A", "P", "C", "H"];
aEmployees.sort(Array.DESCENDING);
trace(aEmployees.toString()); //P,H,C,A
}
}
}
Related examples in the same category