Skip to content
Discussion options

You must be logged in to vote

You'll have to pass the default sorting options as an initial state of the SortingState

  const [sorting, setSorting] = React.useState<SortingState>([
    {
      id: "email", // Must be equal to the accessorKey of the coulmn you want sorted by default
      desc: false,
    },
  ])

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TheMikeyRoss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants