Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort order for first click on column header #436

Open
greeven opened this issue Feb 24, 2021 · 0 comments
Open

Sort order for first click on column header #436

greeven opened this issue Feb 24, 2021 · 0 comments
Labels
new feature New feature or request

Comments

@greeven
Copy link

greeven commented Feb 24, 2021

Is your feature request related to a problem? Please describe.
I have a table with multiple columns where I'm interested in the different columns sorted in descending order.

Problem is that while clicking through those columns, I always have to click twice on the column header because the first click orders the data in ascending order first and on second click in descending order.

Describe the solution you'd like
I'd like an option to set the default first sort order.

Something like:

sort: {
    firstOrder: 'DESC'
  }

Describe alternatives you've considered
I've considered a custom sort function but this seems unnecessary.

Additional context
No.

@afshinm afshinm added the new feature New feature or request label Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants