Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Array > NUMERIC (Array.NUMERIC property) | |||
public static NUMERIC : Number
In the sorting methods, this constant specifies numeric (instead of character-string) sorting. Including it in the options parameter causes the sort() and sortOn() methods to sort numbers as numeric values, not as strings of numeric characters. Without the NUMERIC constant, sorting treats each array element as a character string and produces the results in Unicode order.
For example, given the Array of values [2005, 7, 35], if the NUMERIC constant is not included in the options parameter, the sorted Array is [2005, 35, 7], but if the NUMERIC constant is included, the sorted Array is [7, 35, 2005].
Note that this constant only applies to numbers in the array; it does not apply to strings that contain numeric data (such as ["23", "5"]).
The value of this constant is 16.
Availability: ActionScript 1.0; Flash Player 7
sort (Array.sort method), sortOn (Array.sortOn method)
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001359.html