SWiSH Player Support
SWF5 or later - Supported Internally
Syntax
arrayName.sorton(field);
Arguments
field: a string identifying a field in an element of the array. All elements will be sorted based on the value of this field.
Returns
Nothing.
Description
Method; sorts the elements in an array based on the specified field from the array. If the elements being sorted do not contain the specified field, then the sortOn will behave like the standard arrayName.sort method.
See Also
Array.sort()