Day and Dayfiled Column sort alphabetically instead of numerically
JabRef version
6.0-beta.1
Operating system
macOS
Details on version and operating system
JabRef 100.0.0 (local build from main, commit 3ca291c689) , Mac OS X 12.7.6 x86_64 , Java 25.0.4.1 JavaFX 27+30
Checked with the latest development build (copy version output from About dialog)
- [x] I made a backup of my libraries before testing the latest development version.
- [x] I have tested the latest development version and the problem persists
Steps to reproduce the behaviour
- Create Entries with with day values 1,2,10,25,3
- Add "day" as a column in entry table (Settings -> Entry Table)
- Clicked the day column header to sort
Expected: 1,2,3,10,25 Actual : 1,10,2,25,3
The same issue is happening with "dayfiled" field
This look similar to #17459 (citationcount). In StandardField.java , DAY AND DAYFILED do not have FieldProperty.NUMERIC
I would like to work on this
Appendix
...
Log File
No errors in the log
<img width="1436" height="618" alt="Image" src="https://github.com/user-attachments/assets/4cf69992-d5c6-4954-b12a-018883a5cba1" />
<img width="1433" height="430" alt="Image" src="https://github.com/user-attachments/assets/7b4fca55-fad8-4c87-866c-2f03fd6a8836" />
As of current policy, it's not possible to work on your own issues for newcomers to the repo. You could help each other out and fix each others issues though.
Instead of creating a separate GitHub issue for each field, it might be more efficient to go through all fields and to create a list of fields with similar non-intentional behaviour (if more of those exist) and fix all of them with the same PR.
/assign-me
Thank you for your continued work in JabRef. At this point, you probably already know the basics and the important links. If not, our contributing guidelines is the place you should go to.
At this point in time, you raised 3 pull request(s) of which 33% (1/3) have been merged.
Hi @AnishKmSingh and @kpunia306!
I've been working on #17469 and completed a fix covering DAY, DAYFILED, CHAPTER, PART, and CITATIONCOUNT, following the maintainer's suggestion to address related numeric-sorting issues together.
The implementation includes regression tests and manual GUI verification, and it's currently committed locally.
Since #17459 overlaps with the CITATIONCOUNT fix, I wanted to coordinate before opening a PR to avoid duplicating anyone's work.
Happy to collaborate or incorporate feedback!