Description
Summary 💡
DataGrid has interesting keyboard modifiers for primary and secondary sorting. However, these are difficult for anybody but heavy users to learn.
Instead, why not use stable sorting when ordering DataGrid contents? For example, see the examples at https://mui.com/x/react-data-grid/sorting/ - when first sorting by "Created on", then "Rating", one would expect to get 5-star rated items on the top, secondarily ordered by "Created on". Instead, the "Created on" seems to get in a seemingly arbitrary order.
This has been a standard behavior for e.g. OS/X and Windows file browsers, Excel etc, so a lot of users have learnt to make use of it.
This probably would also help when inserting items in-between etc, so that the order would be retained.
I am a bit unsure on why the order is not stable, as e.g. JavaScript Array.sort() has been guaranted to be stable as of ECMAScript 2019. What might be the reason DataGrid would not retain its order?
Examples 🌈
No response
Motivation 🔦
Providing stable sorting would create a compelling and widely used alternative to the difficult primary and secondary sorting column keyboard modifiers.
Search keywords: datagrid stable sort
Order ID: 69243