Docs
Cloudflare
CodeRabbit
Railway
AG Grid
Netlify
WorkOS
SerpAPI
Clerk
OpenRouter
Sentry
Unkey
Electric
Prisma
Cloudflare
CodeRabbit
Railway
AG Grid
Netlify
WorkOS
SerpAPI
Clerk
OpenRouter
Sentry
Unkey
Electric
Prisma
Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
Static Functions API Reference
Legacy API Reference
Static Functions API Reference

table_getPreSortedRowModel

Function: table_getPreSortedRowModel()

ts
function table_getPreSortedRowModel<TFeatures, TData>(table): RowModel<TFeatures, TData>;
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

ts
const rowsBeforeSorting = table_getPreSortedRowModel(table)
const rowsBeforeSorting = table_getPreSortedRowModel(table)