-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[data grid] Nested grouping and sort by aggregation does not sort the second level #12684
Comments
Hi, first bug report here. Thanks for a cool product. We just recently started using X Data Grid Premium and I was going to try and update from version 6.19.8 to 7.1.0. In 6.19.8 I seem to be able to get above to work as expected. But the sorting does no longer seem to work correctly in 7.0.0 or later. |
Hey @mdoverhag and thanks for raising an issue here. The use case you have there is pretty advanced. This clearly is a regression, so I will add this to our board v6: https://stackblitz.com/edit/github-zzppol-p1ndqj Screen.Recording.2024-04-05.at.10.55.09.movv7: https://stackblitz.com/edit/github-zzppol-vhewiz Screen.Recording.2024-04-05.at.10.52.58.mov |
Thanks for the prompt reply @michelengelen 👍 I'll keep a look out here then! |
Hi @mdoverhag
This was fixed #9679
Did you consider using multiple grouping columns for your use case? |
Hi @cherniavskii, Thank you for making the videos comparing v6 and v7. I get it, considering we're sorting on Grouping, the second level is also technically part of that column and it should be sorted alphabetically. 👍 Thanks for the suggestion on multiple grouping. We'll give that ago! |
@mdoverhag: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Link to live example: https://stackblitz.com/edit/github-zzppol?file=src%2Fdemo.tsx
Steps:
Current behavior
Trader names under Corn are not sorted by the aggregation.
Expected behavior
Trader names under Corn gets sorted by number of orders (Most at the top)
Context
We're grouping by Year-Month (have a separate string column for that). Then we group by sales person. We'd like to order the expanded Year-Month by the sales person with the most sales at the top.
Your environment
npx @mui/envinfo
Search keywords: group sort
Order ID: 37c0051b8b2fa563b59fcf5f2406f346Tz04Njg1OSxFPTE3NDI1NjE3ODcwMDAsUz1wcmVtaXVtLExNPXN1YnNjcmlwdGlvbixLVj0y
The text was updated successfully, but these errors were encountered: