Use the Array.CASEINSENSITIVE constant to run a case-insensitive sort:
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var words:Array = ["T", "r", "a", "j"];
words.sort(Array.CASEINSENSITIVE);
trace(words); //a,j,r,T
}
}
}
Related examples in the same category