sort method
Sorts the rows in the referenced range according to the sort keys you specify.
Syntax
sheetObject.sort(primaryKey, primaryAscending, secondaryKey, secondaryAscending)
Parameters
- primaryKey
- Range. A range reference to the column to be used as the primary sort key.
- primaryAscending
- boolean. If true, the rows in the range are sorted according to the primary sort key from least-to-greatest. If false, the rows are sorted greatest-to-least.
- secondaryKey
- Range. A range reference to the column to be used as the secondary sort key.
- secondaryAscending
- boolean. If true, the rows in the range are sorted according to the secondary sort key from least-to-greatest. If false, the rows are sorted greatest-to-least.
Return value
none.