SORTBY
Sorts the contents of a range or array based on the values in a corresponding range or array.
| Category | DynamicArray |
| Syntax | SORTBY(array, by_array1, [sort_order1], [by_array2, sort_order2], ...) |
Parameters
| Parameter | Required | Description |
|---|---|---|
array | Required | The range or array to sort. |
by_array1 | Required | The range or array to sort by. |
sort_order1 | Optional | 1 (default) for ascending, -1 for descending. |
by_array2 | Optional | Additional range or array to sort by. |
sort_order2 | Optional | Sort order for by_array2. |
Example
SORTBY(array, by_array1, sort_order1, by_array2, sort_order2)
Auto-generated from the EngCanvas function registry.