SetSortColumns
|
Exploration / Indicators |
SYNTAX | SetSortColumns( col1, col2, .... ) |
RETURNS | NOTHING |
FUNCTION | sets the columns which will be used for sorting. col1, col2, ... col10 -Column numbers are ONE-based. Positive number means sort ASCENDING, negative number means sort DESCENDING. Upto 10 columns can be specified for multiple-column sort. Each subsequent call to SetSortColumns overwrites previous one, but multiple SetSortColumns make sense if you want to add multiple rankings by different columns via AddRankColumn |
EXAMPLE | // sort by 5th column in
ascending order |
SEE ALSO | AddRankColumn() function |
The SetSortColumns function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.