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

[data grid] Support asc_nulls_first and desc_nulls_last in sortingOrder #10173

Closed
2 tasks done
2ndPINEW opened this issue Aug 30, 2023 · 2 comments
Closed
2 tasks done
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Sorting Related to the data grid Sorting feature status: waiting for author Issue with insufficient information

Comments

@2ndPINEW
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

When defining GridCol, I would like to set it as sortingOrder: ['asc_nulls_first', 'desc_nulls_last'].
When clicking on a column to sort, I'd like the orderBy to toggle between asc_nulls_first and desc_nulls_last, and I want the arrows in the table headers to point in the specified direction."

Examples 🌈

No response

Motivation 🔦

When creating queries with a GraphQL client, being able to specify this in the field definition would eliminate the need for conditional branching in other parts, keeping the code streamlined and simple.

Order ID 💳 (optional)

No response

@2ndPINEW 2ndPINEW added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Aug 30, 2023
@zannager zannager added the component: data grid This is the name of the generic UI component, not the React module! label Aug 30, 2023
@MBilalShafi
Copy link
Member

Are you looking for https://mui.com/x/react-data-grid/sorting/#custom-comparator to modify how the default sorting works in the Grid?

@MBilalShafi MBilalShafi added status: waiting for author Issue with insufficient information feature: Sorting Related to the data grid Sorting feature and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 31, 2023
@github-actions
Copy link

github-actions bot commented Sep 7, 2023

The issue has been inactive for 7 days and has been automatically closed. If you think that it has been incorrectly closed, please reopen it and provide missing information (if any) or continue the last discussion.

@github-actions github-actions bot closed this as completed Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Sorting Related to the data grid Sorting feature status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

3 participants