testArrey.sort ( function(arr1:Array,arr2:Array) { return (arr1[0]>arr2[0]) ? 1 : (arr1[0]<arr2[0]) ? -1 : 0 } );