Try
JScript code:
MyArr.sort();
?
http://www.javascriptkit.com/javatutors/arraysort.shtml
edit: i think it only sorts the values, not keys..
I guess just find out how to get the key name from a JS array, put them in an array and use the sort function then make a new array (blah)