-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort legend items in case of hierarchy #810
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
LGTM 💯 |
Would 1st go to the search page, search results, then create 🤷♂️
216ca36
to
018b9c4
Compare
I changed the logic and I base myself on the labels received. This is because for some sorters we need the measures (byMeasure), and here we do not have it. Since the labels come already sorted, I figured we could remove the need for sorters here, and resort the hierarchy group entries according to the original order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, looking good! 😎
In case of hierarchy, we would not sort legend items and instead rely
on hierarchy order, which is not what we want.
Fixes : #806
How to test
/en/create/new?cube=https://environment.ld.admin.ch/foen/nfi/49-19-44/cube/1