I have the following simple code:
var list:Array = new Array();
list.push( {id: “1”} );
list.push( {id: “4”} );
list.push( {id: “12”} );
list.push( {id: “23”} );
list.push( {id: “9”} );
list.sortOn(“id”, Array.NUMERIC);
for(i=0;i<=list.length-1;i++){
trace(list*[“id”]);
}
Output:
1
12
23
4
9
I am publishing to Flash Player 10. Shouldn’t the output be 1, 4, 9, 12, 23 instead?
p.s. I have tried google search, but no clues.