Features API Reference

SortFn

Interface: SortFn()<TFeatures, TData>

Defined in: features/row-sorting/rowSortingFeature.types.ts:34

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

ts
SortFn(
   rowA, 
   rowB, 
   columnId): number;

Defined in: features/row-sorting/rowSortingFeature.types.ts:38

Parameters

rowA

Row<TFeatures, TData>

rowB

Row<TFeatures, TData>

columnId

string

Returns

number

Properties

resolveDataValue?

ts
optional resolveDataValue: TransformDataValueFn;

Defined in: features/row-sorting/rowSortingFeature.types.ts:48

Normalizes each row's value before the two sides are compared. Only honored by sorting functions built with constructSortFn (including all built-in sorting functions).