When you sort an array of numbers, the values are sorted according to the ASCII equivalents of the digits : Sort : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Sort »

 

When you sort an array of numbers, the values are sorted according to the ASCII equivalents of the digits


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var scores:Array = [102145820196];
        scores.sort(  );
        trace(scores)//10,14,19,2,20,5,6,8

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Sort