This content has been marked as final. Show 4 replies
what if I want two fields can I go
Array.sortOn("index",Array.NUMERIC, "label", );
the second one, "label" is alphabetic
Array.sortOn (["index", "label"], [ Array.NUMERIC, Array.CASEINSENSITIVE]);
Pass the fields as an array, and the methods of sorting as a 2nd array. The number of entries must match, so you must provide a 2nd sorting method. It could also be Array.DESCENDING for alphabetic values, depends on what you want.