order(<array>)
numeric
The order of elements in an array. The elements are sorted in ascending order and can be numeric, string, time, channel, window or layer values. This function returns the same number of values as the array parameter.
The values in the array parameter are left unchanged by this function. The action of the function is merely to compute the sort order.
When sorting string values, text comparisons are case-insensitive.
<array>
A numeric, string, time, channel, window or layer array.
Prints three numeric values: 2, 1 and 3.
numeric xs[] = <1.1, 0.78, 2.93> tell order(xs)
Commands: |