-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Sorting custom entry fields that contain numerical values #6426
Sorting custom entry fields that contain numerical values #6426
Conversation
Add a comparator for numeric cases in order to sort custom entry fields that contain numerical values
Change in order for the Comparator class to wrap String and not Optional<SpecialFieldValueViewModel>
Add the fix we implement in the appropriate section.
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.
Thanks, looks good so far. It would be really nice you could add a Unit Test for this class.
You can easily test that by using the comparator on a List. with Comparator.comparing(....)
Check every possible input that the class might compare
I think something went wrong with the merge? |
Hi @dimitra-karadima , |
@calixtus Of course no problem! Thanks for fixing and merging my code! |
* upstream/master: Ignore generated .mv file Fix checkstyle, moved some comments for better understanding Sorting custom entry fields that contain numerical values (#6426) UI consistency - BibTexStringEditorDialog rework (#6287) Squashed 'src/main/resources/csl-styles/' changes from 270cd32..c35d219
@MootezSaaD and I have worked together and this pull request fixes #6349
We added a new Comparator for numeric cases and now they are sorted as integers and not alphabetically.