[COLOR=#333333]**I have a string:
**[/COLOR][COLOR=#2E8B57][FONT=Monaco]var Numbers:String = “10,1,2,15,21,13,33,3”;
[/FONT][/COLOR][COLOR=#333333]**I try to convert it to an array by using split operation. Then I try to sort each elements of the array by numerically. But 10 becomes before 3. Because 10 starts with 1.
I searched but no result I found. **[/COLOR][COLOR=#ff0000]This is important that I should do this sorting without using for cycle.[/COLOR][COLOR=#333333][/COLOR]
var Numbers:String = "10,1,2,15,21,13,33,3";
Arr=Numbers.split(",");
Arr=Arr.sort(Array.NUMERIC);
trace(Arr[3]);
trace(Arr);
Thanks for your attention already…