table_getSortedRowModel

Function: table_getSortedRowModel()

ts
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

ts
const sortedRows = table_getSortedRowModel(table)