You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe there should be a way to turn this off if you want to render the groups in input order? It’s confusing because if you set the sort option to null, you don’t get input order, you get ascending natural order, which is different from most other cases. (It makes sense with the bin transform, though.)
It seems to me that it should preserve the input order by default. This way the sort option would behave as expected: if you sort the input, then the groups will likewise be sorted.
maybeGroup always sorts by the group key:
plot/src/transforms/group.js
Lines 229 to 236 in 98cb553
Maybe there should be a way to turn this off if you want to render the groups in input order? It’s confusing because if you set the sort option to null, you don’t get input order, you get ascending natural order, which is different from most other cases. (It makes sense with the bin transform, though.)
plot/src/transforms/group.d.ts
Lines 21 to 32 in 98cb553
Ref. https://talk.observablehq.com/t/facet-custom-sort/8002/6
The text was updated successfully, but these errors were encountered: