-
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
fix: Sorting issues #1055
fix: Sorting issues #1055
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Code changes all look OK to me ! Thanks @bprusinowski ! Do you think we could add a test for the nominal values sorting ?
Sadly, I do not remember why there was a sorting on identifier or position in the first place. |
@ptbrowne I've added two tests for nominal and measure dimensions 👍 |
Maybe this @bprusinowski #821 |
Fixes #1057.
Fixes #1054.
Fixes #1053.
For the line chart legend ordering issues, we were not using
getSortingOrders
helper function, which lead toorderBy
function not using right order for subsequent sorting functions.For the table sorting problems, we were:
TemporalDimensions
) and filtering out such values inmakeDimensionValueSorters
. This led to broken table sort when sorting e.g.TemporalDimensions
. @ptbrowne do you remember why such filtering was introduced in the first place?NumericalMeasures
by labels. As we only fetch min and max value for such dimensions, this led to broken sorting logic for everyNumericalMeasure
(and when the label was there, we were treating it as string, while is should have been treated as number). This PR fixes that issue by returning an identity function (almost, converting string to number) forNumericalMeasures
.How to test
Re-create the charts defined in the issue to see that the sorting works correctly now.