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 descending on first click #102

Open
lackovic opened this issue Oct 10, 2017 · 2 comments
Open

Sort descending on first click #102

lackovic opened this issue Oct 10, 2017 · 2 comments

Comments

@lackovic
Copy link
Contributor

Is there a way to set for a specific column the ordering direction of the first click?
The default behavior is Click once on a heading to sort ascending, twice for descending.
I would like to have Click once on a heading to sort descending, twice for ascending.

@how2945ard
Copy link

I wonder how can we do this too

@mentamarindos
Copy link

Maybe you missed to add the ts-default to the heading
<th ts-criteria="Name | lowercase" ts-default>Name</th>
It starts sorting ascending then you just click once and it sorts descending. Hope it helps.

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

No branches or pull requests

3 participants