Sort
|
Miscellaneous functions |
| SYNTAX | Sort( array, first = 0, last = -1, indexmode = False ) |
| RETURNS | ARRAY |
| FUNCTION | Sorts a numerical array in ascending order starting from first element ending at last element. If last is not specified or negative then AmiBroker will use BarCount - 1. If indexmode = 0 then returned array holds actual sorted values, if indexmode = 1 the function returns array of indexes to the sorted values instead of values themselves. So if first returned value is 2923 it means that input array[ 2923 ] is the smallest element. |
| EXAMPLE | Filter = 1; |
| SEE ALSO |
The Sort function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.