visualization-tool icon indicating copy to clipboard operation
visualization-tool copied to clipboard

Inconsistent Sorting orders

Open Kronmar-Bafu opened this issue 1 year ago • 1 comments

Describe the bug The logic behind the sorting in the legend is inconsistent.

To Reproduce If one uses a segmentation along a specific key dimension, one can choose different possibilities for their order. Namely "Total size" for alphabetic, "number" for numerical and "auto".

See this small Dashboard https://visualize.admin.ch/en/v/0P29VUhlFBuA

Sorting the by Total Size yields a legend which is sorted from the bottom up, while sorting by Name yields a legend sorted from the top down.

Expected behavior It should be consistent across the different sorting methods.

Environment (please complete the following information):

  • Visualize environment and version: PROD v4.0.0

Kronmar-Bafu avatar Jun 20 '24 14:06 Kronmar-Bafu

I will piggy back a little bit on this issue here. I observed that sorting in filters, axis and legends is done (presumably) based on their ASCII code. So for datasets like Mediapulse INT the cateogry "Sender" will have a bit of a unituitive order as the lowercase letter channels appear all the way to the back of the legend/axis/filter. I do not think this is a bug, however I am unsure if this is really desired

tboeni avatar Aug 19 '24 11:08 tboeni

Related to #2044

sosiology avatar Aug 05 '25 09:08 sosiology