Optional
ascendingAscending is smallest to largest
true
Optional
dataAdditional options for sorting
Optional
descriptionUsed for undo/redo/collaboration/version
Optional
fieldsAllows you to override individual sorts for each additional level. All sort criteria default to the sort criteria specified on the sort option.
Optional
hastrue
Optional
includeDetermine if sort should honor hidden headers.
false
The sort function does not but the UI does.
Optional
offset0-based offset for the header based on orientation
The first index of the selected range
Optional
orientationRangeOrientation.Rows
Optional
preserveDetermine the behavior of sorting merged cells. By default merged cells will sort with their merges intact but sorting will be limited to sorting with all merges of the same size.
true
Options for sorting a range.