Sort
methodsSorts the rows in the range.
Parameters:sortNumber | Object | Array
Determines the action performed by the method.
- Passing a number
nsorts thenth column in the range, in ascending order. - Passing a
{ column: Number, ascending: Boolean }sorts the respective column in ascending / descending order, based on the ascending parameter. The column index is relative to the beginning of the range. - Passing an array of
{ column: Number, ascending: Boolean }objects sorts each column, specified by the index.