Sorting with Multiple Flags
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var aWords:Array = ["o", "S", "a", "C"];
aWords.sort(Array.DESCENDING | Array.CASEINSENSITIVE);
trace(aWords.toString()); // S,o,C,a
}
}
}
Related examples in the same category