Sort number-like categories in numerical order #214
Labels
bug-sev:1|negligible
bug-type:1|cosmetic
UX is less than ideal; something is superficially wrong.
scope:0|this-project
No other repositories are impacted.
src:self
From the original poster.
type:improvement
Making something better.
Improvement Description
Sorting number-like bins numerically rather than alphabetically would probably make people happy.
Current Behavior
Some categorical metadata bins (e.g. time in weeks) are most-easily described with numbers. These numbers are sorted alphabetically, and so require leading zeros in order to sort in an expected order. Without leading zeros in the metadata column, bins are sorted like this: 0, 1, 10, 11, 12, ..., 19, 2, 20....
Proposed Behavior
Sort bins without leading zeros like this: 0, 1, 2, 3, ..., 10, 11, 12, ..., 19, 20, 21...
Comments
Taxa-bar-plots sort the same bins in the proposed manner. It's nice. :)
Screencap of current behavior
The text was updated successfully, but these errors were encountered: