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

Grouping sorting options #740

Open
mstijak opened this issue Feb 1, 2021 · 2 comments
Open

Grouping sorting options #740

mstijak opened this issue Feb 1, 2021 · 2 comments

Comments

@mstijak
Copy link
Member

mstijak commented Feb 1, 2021

Currently, we cannot sort data after grouping. Groups are returned sorted by string based group keys. In case of numerical values this is not optimal because we get results like '1', '10', '2' and it's not possible to get data in reverse order. Therefore, the Grouper class should be revisited.

@nebojsa-peric
Copy link
Collaborator

Any idea when you will be working on this? :) We have a use case where we would like to keep the records in the order they were in before the grouping. So it would be nice to either skip sorting, or define some custom sort priority property to achieve this.

@nebojsa-peric
Copy link
Collaborator

This is now supported via grouping config comparer callback: https://docs.cxjs.io/examples/grid/grouping

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