Skip to content

Default table sorting by stars desc #29#39

Open
saqib-7 wants to merge 1 commit into
Kludex:masterfrom
saqib-7:master
Open

Default table sorting by stars desc #29#39
saqib-7 wants to merge 1 commit into
Kludex:masterfrom
saqib-7:master

Conversation

@saqib-7
Copy link
Copy Markdown

@saqib-7 saqib-7 commented Mar 28, 2026

Initialize the table's sorting state to sort by the "stars" column in descending order by default. This ensures the data table shows highest-starred items first on initial render by setting useState([{ id: "stars", desc: true }]).

Initialize the table's sorting state to sort by the "stars" column in descending order by default. This ensures the data table shows highest-starred items first on initial render by setting useState<SortingState>([{ id: "stars", desc: true }]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant