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

Is it possible to sort by multiple columns? #313

Open
ichmag17 opened this issue Oct 4, 2021 · 4 comments · May be fixed by #359
Open

Is it possible to sort by multiple columns? #313

ichmag17 opened this issue Oct 4, 2021 · 4 comments · May be fixed by #359

Comments

@ichmag17
Copy link

ichmag17 commented Oct 4, 2021

I was just wondering if there is an implemented way of sorting by multiple columns or how I could do that.

@thyseus
Copy link
Collaborator

thyseus commented Oct 14, 2021

This is not yet implemented, but thanks a lot for that idea. It should not be too complicated to implement, one would need to find a proper "User Experience" for that.

@michalisantoniou6
Copy link

@thyseus We'd be happy to contribute the change, and take on the development and UX. Do you have any specific thoughts about this feature, or should we just open a PR? Thanks!

@thyseus
Copy link
Collaborator

thyseus commented Oct 27, 2021

Thanks a lot for showing the diligence to contribute to this software !

I am not sure about the "perfect" UX for that, maybe displaying a tiny digit 1, 2, 3, ... beneath the up/down arrow to indicate in which order this column is being sorted by? Just make the feature toggleable as a LivewireDatatable base class property and ensure the whole ordering is being resetted when the users requests so.

@HammaBamma
Copy link

Yah it would be great to be able to Example: first sort by column "category", then by column "Name"... so that everything sorted by category, is then sorted alphabetically instead of by the ID number..

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

Successfully merging a pull request may close this issue.

4 participants