abe33 / abe33/atom-tablr

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

Offen
#90 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
CoffeeScript
Sterne
163
Forks
44
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.