Giter Site home page Giter Site logo

Comments (6)

mdoverhag avatar mdoverhag commented on June 26, 2024

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.

from mui-x.

michelengelen avatar michelengelen commented on June 26, 2024

Hey @mdoverhag and thanks for raising an issue here.
I am glad you like the product! ✨

The use case you have there is pretty advanced.
I just tried it and you are right. The second sorting does not work.

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.mov

v7: https://stackblitz.com/edit/github-zzppol-vhewiz

Screen.Recording.2024-04-05.at.10.52.58.mov

from mui-x.

mdoverhag avatar mdoverhag commented on June 26, 2024

Thanks for the prompt reply @michelengelen 👍 I'll keep a look out here then!

from mui-x.

cherniavskii avatar cherniavskii commented on June 26, 2024

Hi @mdoverhag
I checked both v6 and v7 (added links to demos in #12684 (comment)) and it seems to me that the behavior in v7 is correct.
In v6, sorting on the grouping column was only applied to the first level of the rows:

v6 v7

This was fixed #9679

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.

Did you consider using multiple grouping columns for your use case?
Here's a working demo with Data Grid v7 https://stackblitz.com/edit/github-zzppol-u2w6mf

from mui-x.

mdoverhag avatar mdoverhag commented on June 26, 2024

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!

from mui-x.

github-actions avatar github-actions commented on June 26, 2024

⚠️ This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

@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.

from mui-x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.