Client-Side API Reference > FlexSheet > wijmo.grid.sheet > SortManager Class |
constructor(owner: FlexSheet): SortManager
Initializes a new instance of the SortManager class.
Gets or sets the collection of the sort descriptions represented by the ColumnSortDescription objects.
addSortLevel(columnIndex?: number, ascending?: boolean): void
Adds a blank sorting level to the sort descriptions.
The index of the column in the FlexSheet control.
The sort order for the sort level.
cancelSort(): void
Cancel the current sort descriptions to the FlexSheet control.
checkSortItemExists(columnIndex): number
Check whether the sort item of specific column exists or not
The index of the column in the FlexSheet control.
commitSort(undoable?: boolean): void
Commits the current sort descriptions to the FlexSheet control.
The boolean value indicating whether the commit sort action is undoable.
copySortLevel(): void
Adds a copy of the current sorting level to the sort descriptions.
deleteSortLevel(columnIndex?: number): void
Removes the current sorting level from the sort descriptions.
The index of the column in the FlexSheet control.
Maintains sorting of the selected Sheet of the FlexSheet.