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.
Siedlerchr
left a comment
There was a problem hiding this comment.
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.