SortDescriptor

Defines the configuration for a sort descriptor in the Data Grid component. Specifies the column field and direction for sorting operations. Used to describe individual column sorting rules within the grid.

Props

The following table outlines the props for the SortDescriptor:

NameTypeDefaultDescription
direction
SortDirection | string
SortDirection.Ascending | 'Ascending'

Specifies the direction of the sort operation for the column. Supports values like ascending or descending, typically defined by the SortDirection enum. Controls whether the column data is sorted in ascending or descending order.

field
string
-

Identifies the column field in the data source to apply sorting operations. Determines which column’s data is sorted during the operation.