The union type of valid fields that can be sorted. Defaults to string.
Initializes a new instance of the Sort class.
The union type of valid fields that can be sorted. Defaults to string.
Optionaldata: SortParams<TField>Optional sort parameters to initialize the configuration.
A class representing a sort configuration, implementing SortParams.
Example
Basic usage showing default sort creation and sorting with custom parameters: