Exposes methods to identify a region in the wroksheet and to apply sort criteria to that region.

WorksheetSortSettings

new WorksheetSortSettings(a: Worksheet, b: object): WorksheetSortSettings

Returns WorksheetSortSettings

$t: Type

Inherited from: RelativeIndexSortSettings

caseSensitive: boolean
sortType: WorksheetSortType

Returns the region that the filter settings is applied to (read-only).

get region(): WorksheetRegion

Returns WorksheetRegion

Clears the region as well as any existing sort criteria

clearRegion(): void

Returns void

Re-sorts all data cells in the region based on the sort conditions.

reapplySortConditions(): void

Returns void

Sets the region where the filter settings should be applied

setRegion(address: string): void

Parameters

  • address: string

    The address of the new region.

Returns void

Inherited from: RelativeIndexSortSettings

Gets or sets the sort condition for the specified sort-able item.

sortConditions(sortableItem: RelativeIndex, value: SortCondition): SortCondition

Parameters

Returns SortCondition