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

[FEATURE] - Enable the possibility to sort list view by multiple fields #526

Open
mattvan83 opened this issue Jan 24, 2025 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@mattvan83
Copy link

Summary

Actually it seems that in the options.tsx file one could only defaultSort by one field of the model. It would be beneficial in case of duplicated fields to be able to sort then by another field.

Basic Example

        defaultSort: [
      {
          field: "lastname",
          direction: "asc",
        },
      {
          field: "firstname",
          direction: "asc",
        },
     ]

Drawbacks

No response

Unresolved questions

No response

@mattvan83 mattvan83 added the enhancement New feature or request label Jan 24, 2025
@foyarash
Copy link
Collaborator

Thanks for the issue, this will involve a bit of refactor for the sorting part since that would mean we would need to support multi columns sorting on the UI. We will have a look at it. Contribution is welcomed if anyone is willing to take the subject !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants