Skip to content

How can I loop ascending and descending only two states when clicking sortable column? #2478

Answered by tadger
sthtnr asked this question in General
Discussion options

You must be logged in to vote

I believe you're looking for the disableSortRemove option (passed to useTable) documented here, eg:

const {
  // ...
} = useTable({
  columns,
  data,
  disableSortRemove: true
}, useSortBy);

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sthtnr
Comment options

Answer selected by sthtnr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants