mirror of
https://github.com/TanStack/table.git
synced 2026-11-18 18:55:54 +00:00
1,004 B
1,004 B
| id | title |
|---|---|
| table_getPreSortedRowModel | table_getPreSortedRowModel |
Function: table_getPreSortedRowModel()
function table_getPreSortedRowModel<TFeatures, TData>(table): RowModel<TFeatures, TData>;
Defined in: core/row-models/coreRowModelsFeature.utils.ts:131
Reads the row model immediately before sorting.
Sorting runs after grouping, so this aliases table.getGroupedRowModel().
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
Parameters
table
Table_Internal<TFeatures, TData>
Returns
RowModel<TFeatures, TData>
Example
const rowsBeforeSorting = table_getPreSortedRowModel(table)