SORT
Sorts the contents of a range or array.
| Category | DynamicArray |
| Syntax | SORT(array, [sort_index], [sort_order], [by_col]) |
Parameters
| Parameter | Required | Description |
|---|---|---|
array | Required | The range or array to sort. |
sort_index | Optional | The row or column index to sort by. Defaults to 1. |
sort_order | Optional | 1 (default) for ascending, -1 for descending. |
by_col | Optional | TRUE to sort by column; FALSE (default) to sort by row. |
Example
SORT(array, sort_index, sort_order, by_col)
Auto-generated from the EngCanvas function registry.