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

Switching to a stable sort algorithm would allow for multi-column sorting #90

Open
paullamar3 opened this issue Jul 10, 2017 · 0 comments

Comments

@paullamar3
Copy link

First: I love tablr. I've been using it a lot recently and am very pleased with it.

I want to sort by multiple columns. For example, if my CSV records have a COMPANY and a EMPLOYEE field I'd like to sort by COMPANY and within each group of records for a company have the PERSON field sorted as well. If tablr used a stable sorting algorithm I could do this by sorting on PERSON first, applying the sort, and then sorting on COMPANY and applying that sort. Unfortunately this doesn't work. I'm assuming tablr is not using a stable sort algorithm? (Don't have time to look through the code right now.)

Could tablr switch to using a stable sort algorithm? It would be a "nice to have" enhancement.

Or am I missing a trick that would let me do multi-column sorts as it is?

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

No branches or pull requests

1 participant