Home › Forums › General XMetaL Discussion › Array sorting › Reply To: Array sorting
Reply to: Array sorting
February 22, 2010 at 9:31 pmHere's the simplest JScript example I can think of, and it works for me:
[code]//XMetaL Script Language JScript:
var a1 = new Array(“foo”,”bar”,”baz”,”2″,”1″,”1000″);
Application.Alert(“Original: ” + a1);
a1.sort();
Application.Alert(“Sorted: ” + a1);[/code]