This is my code:
var newArray = [];
newArray[3] = "Three"
newArray[1] = "One"
newArray[2] = "Two"
Result of this array is:
1: One
2: Two
3: Three
But I want to get result like this (sort by append):
3: Three
1: One
2: Two
Note: I don't want to lose the keys.