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

Order of sorted column groups #176

Open
eighthday opened this issue Jan 18, 2019 · 1 comment
Open

Order of sorted column groups #176

eighthday opened this issue Jan 18, 2019 · 1 comment

Comments

@eighthday
Copy link

Hi,

If I sort a column, the sort is done correctly, but how do i control the order of the grouped rows.

e.g If I sort by sector I get a group of "Architecture & Property" projects together, but they are showing oldest to newest. How can I change this to newest to oldest or alphabetical ?

after sort:
D2E | Architecture & Property | 2002
Creative Developments | Architecture & Property | 2006
Frances Tobin | Architecture & Property | 2007
Comber Rowe | Architecture & Property | 2013

Codepen here:
https://codepen.io/eighthday/pen/OreoJx

thanks!

@Macro-Jackson
Copy link

As you can read here:
#86
Tristen was not sure in 2015. Maybe we can convince him that it is important. :-)

As I can see it, it should not be too hard to handle. And IMHO a big addition to this setup. I would really like this too. I have also a table with duplicate sets of data which I do like to sort in two columns.

https://github.com/tristen/tablesort/blob/gh-pages/src/tablesort.js
Seems something should be edited around line 200. But my knowledge here is limited. I am not a JS guru in any sense.

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

2 participants