Skip to content
masterclass Buddy

TanStack · Function

getSortedRowModel

getSortedRowModel() enables client-side sorting in TanStack Table. It supplies the row model that transforms table rows into sorted rows.

Last updated

Syntax

getSortedRowModel<TData>(): RowModelFactory<TData>

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • createSortedRowModel
  • getPreSortedRowModel
  • SortingState
  • manualSorting
  • sortingFn
  • getRowModel

Source: Sorting Guide | TanStack Table Docs. Checked 2026-11-03.