Skip to content
This repository has been archived by the owner on Apr 2, 2019. It is now read-only.

[Feature Request] Sort by multiple columns #143

Open
ghost opened this issue Apr 26, 2013 · 12 comments
Open

[Feature Request] Sort by multiple columns #143

ghost opened this issue Apr 26, 2013 · 12 comments

Comments

@ghost
Copy link

ghost commented Apr 26, 2013

Hi!

With backgrid is it possible to sort rows by multiple columns?
For example name ASC, price DESC, etc...

@wyuenho
Copy link
Contributor

wyuenho commented Apr 27, 2013

Not at the moment. Is this a feature request?

@ghost
Copy link
Author

ghost commented Apr 27, 2013

If so, then ye, you can call it that. :-)

@ghost
Copy link
Author

ghost commented Apr 27, 2013

Hmm the implementation of this is not so easy. Maybe we'll need sorting groups, and add columns and direction to these groups which can be set by clicking on the header part of the column...

@wyuenho
Copy link
Contributor

wyuenho commented Apr 27, 2013

Just need a way to cycle a list of sorting order priorities. The list will be just the columns array. Will need to adjust the comparator implementation that way as well. Will be better if this multiple sorting functionality can be turned off and on as well.

@ghost
Copy link
Author

ghost commented Apr 27, 2013

Yepp... You are right...

@wyuenho
Copy link
Contributor

wyuenho commented Apr 27, 2013

It shouldn't be that hard, just needs someone to do it. I have other priorities for 0.3. Wanna give it a shot? :)

@ghost
Copy link
Author

ghost commented Apr 27, 2013

I'm afraid I'm fully booked this month and next month too :S Maybe if I have some spare time next week...

@wyuenho wyuenho mentioned this issue Jul 11, 2013
5 tasks
@ghost ghost assigned wyuenho Aug 3, 2013
@jmealo
Copy link

jmealo commented Jan 14, 2014

+1

@ZECTBynmo
Copy link

This would be great!

@ericremoreynolds
Copy link

+1

@flend
Copy link

flend commented Sep 18, 2016

Would also like this 👍

@ramya-rao-a
Copy link

+1

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

No branches or pull requests

6 participants