T
TanStack2y ago
correct-apricot

Default/initial sort

Most of the existing discussion around this refers to a sortBy prop on table.initialState but that doesn't seem to exist anymore. I assume this was changed in V8? How can I have the table sorted by a particular column as soon as the table loads.
1 Reply
foreign-sapphire
foreign-sapphire2y ago
It's there it seems. https://tanstack.com/table/v8/docs/api/core/table#initialstate Do you have a sandbox or something showing your situation?
Table APIs | TanStack Table Docs
useReactTable / createSolidTable / useVueTable / createSvelteTable `tsx

Did you find this page helpful?