string | Alphabetic |
real | Numeric |
complex | Numeric - uses magnitude |
Use this function instead of SortIdx in new code. The original function sorted numeric values from high value to low value which is the opposite to what might usually be expected.
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'. 'forward' for numeric data means lowest values first.
Return type: real array
An array of indexes into the input array, sorted by the method specified in argument 2.
▲Function Summary▲ | ||
◄ SortIdx | SourceDialog ▶ |