SortOptions Interface
Sort keys use zero-based worksheet columns or column letters; defaults to ascending with headers.
Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.
Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.
Members
Properties
| Property | Description |
|---|---|
| caseSensitive | The caseSensitive value of SortOptions. |
| hasHeaders | The hasHeaders value of SortOptions. |
| keys | The keys value of SortOptions. |
Examples
Configure SortOptions for an invoice or sales-report workflow. Supply font and document resources from the application where the example accepts them as inputs.
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';
const sortSettings: Parameters<ServerSheetControl['workbook']['sortRange']>[1] = {
keys: [{ column: 'B', order: 'descending' }],
hasHeaders: true,
};