This function is deprecated. Use SortIdx2 for new code.
string | Alphabetic |
real | Numeric |
complex | Numeric - uses magnitude |
Number | Type | Compulsory | Default | Description |
1 | any array | Yes | Items to sort | |
2 | string | No | 'forward' | Sort direction |
Sort option, value either 'forward' or 'reverse'. For numeric data, 'forward' returns highest values first. This is the opposite of what might be expected. SortIdx2 behaves as expected and should be used in new code.
Return type: real array
An array of indexes into the input array, sorted by the method specified in argument 2.
▲Function Summary▲ | ||
◄ Sort | SortIdx2 ▶ |