Skip to main content

sortFns

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

const sortFns: object;

Defined in: features/row-sorting/sortFns.ts:361

The built-in sorting function registry.

Registering this full object opts out of tree-shaking: every built-in sorting function ends up in your bundle. Prefer importing the sortFn_* functions you actually use and registering just those in the sortFns slot, or passing them directly to the sortFn column option.

Type Declaration

alphanumeric

alphanumeric: CreatedSortFn<any, any> = sortFn_alphanumeric;

alphanumericCaseSensitive

alphanumericCaseSensitive: CreatedSortFn<any, any> = sortFn_alphanumericCaseSensitive;

basic

basic: CreatedSortFn<any, any> = sortFn_basic;

datetime

datetime: CreatedSortFn<any, any> = sortFn_datetime;

text

text: CreatedSortFn<any, any> = sortFn_text;

textCaseSensitive

textCaseSensitive: CreatedSortFn<any, any> = sortFn_textCaseSensitive;

Deprecated

Import individual sortFn_* functions instead for a smaller bundle. This export still works and is not going away in v9, but built-in name resolution (including sortFn: 'auto') only finds functions you register yourself.