⌨ Syntax
SORT(array,[sort_index],[sort_order],[by_col])
Arguments
array
(required)
— The range, or array to sort
sort_index
(optional)
— A number indicating the row or column to sort by
sort_order
(optional)
— A number indicating the desired sort order; 1 for ascending order (default), -1 for descending order
by_col
(optional)
— A logical value indicating the desired sort direction; FALSE to sort by row (default), TRUE to sort by column
▶ Examples
=SORT(A2:A17)
=SORT(array,[sort_index],[sort_order],[by_col])