Skip to main content

SORT

Sorts the contents of a range or array.

CategoryDynamicArray
SyntaxSORT(array, [sort_index], [sort_order], [by_col])

Parameters

ParameterRequiredDescription
arrayRequiredThe range or array to sort.
sort_indexOptionalThe row or column index to sort by. Defaults to 1.
sort_orderOptional1 (default) for ascending, -1 for descending.
by_colOptionalTRUE 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.