Inconsistent Sorting orders
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
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
Related to #2044