Skip to main content

SortFn

还没翻译译自英文(tanstack.com)本页 21 段都还没译

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

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

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?

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).