mirror of
https://github.com/TanStack/table.git
synced 2026-11-18 18:55:54 +00:00
1.1 KiB
1.1 KiB
| id | title |
|---|---|
| table_getSortedRowModel | table_getSortedRowModel |
Function: table_getSortedRowModel()
function table_getSortedRowModel<TFeatures, TData>(table): RowModel<TFeatures, TData>;
Defined in: core/row-models/coreRowModelsFeature.utils.ts:150
Resolves the row model after sorting has been applied.
When manualSorting is enabled, or no sorted row-model factory was
registered, this returns the pre-sorted row model because sorted data is
expected to be supplied by the caller.
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
Parameters
table
Table_Internal<TFeatures, TData>
Returns
RowModel<TFeatures, TData>
Example
const sortedRows = table_getSortedRowModel(table)