A case-insensitive sort using the Array.CASEINSENSITIVE constant : Sort : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Sort »

 

A case-insensitive sort using the Array.CASEINSENSITIVE constant


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var aWords:Array = ["o""S""a""C"];
        aWords.sort(Array.CASEINSENSITIVE);
        trace(aWords.toString());  //a,C,o,S
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Array
» Sort