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

Sorting groups when grouping is active #111

Open
RaskaTheFurry opened this issue Mar 22, 2024 · 0 comments
Open

Sorting groups when grouping is active #111

RaskaTheFurry opened this issue Mar 22, 2024 · 0 comments

Comments

@RaskaTheFurry
Copy link

Hello,

I use the table with static mode off and I assume, that this means, that I have to do the data sorting myself. When im not using grouping in this table, the data is sorted correctly how I want it. But when i turn on grouping, the groups arent sorted how the data is sorted. It seems that numbers are sorted first, then null value and then strings? I would like to have null values first, above the numbers, if it is indeed being sorted like that. Or give us a way to sort it ourselves maybe?

As an example, lets say the groups are [null,"1", "2", "a", "b"] ( thats how the data is also sorted and how I want the groups to be sorted ). The way it works now the groups will be sorted like this: ["1","2",null,"a",b"].

My suggestion is to add group sort property, that would accept a sorting function.

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

1 participant