TanStack

table_autoResetSorting

Function: table_autoResetSorting()

ts
function table_autoResetSorting<TFeatures, TData>(table): void;

Defined in: features/row-sorting/rowSortingFeature.utils.ts:81

Resets sorting after the table data changes when explicitly enabled.

Unlike other auto-reset behaviors, sorting is preserved by default. An explicit autoResetAll value takes precedence over autoResetSorting.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

void

Example

ts
table_autoResetSorting(table)