Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
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_getSortedRowModel

Function: table_getSortedRowModel()

ts
function table_getSortedRowModel<TFeatures, TData>(table): RowModel<TFeatures, TData>;
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)
const sortedRows = table_getSortedRowModel(table)