Skip to content
masterclass Buddy

TanStack · Type Alias

SortingState

SortingState describes the active table sorting. It is an array of objects, with one object for each sorted column.

Last updated

Syntax

type SortingState = ColumnSort[]

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

Subscribe
  • ColumnSort
  • SortingTableState
  • onSortingChange
  • manualSorting
  • getSortedRowModel
  • setSorting
  • resetSorting

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