Skip to content

Sorting custom entry fields that contain numerical values #6349

@GreyMatter17

Description

@GreyMatter17

JabRef version 5.0 on Ubuntu 16.04, and on Windows 10, both installed using the installation files (.deb or .msi) downloaded from the JabRef website.
I assume the Java version will be that provided by the installer.

JabRef allows the user to add custom general entry fields that contain numerical values. All versions of JabRef prior to 5.0 allowed the Entry Table to be sorted in the numerical order of the value of such a custom field, simply by clicking on the column header.

However, with JabRef 5.0, the numerical (integer) values in this column are sorted in alphabetical order instead!
This means, for example that the numbers 1,2,3,10,13, 21
are sorted into the order 1,10,13,2,21,3
This suggests the numerical values are being treated as plain text.
I did not observe this problem with JabRef 4.3.1 or earlier versions.

Steps to reproduce the behavior:

  1. Add a custom entry field to a BibTeX database using a JabRef version earlier than 5.0.
  2. Populate this field with a range of positive integer values.
  3. Open the BibTeX database file with JabRef 5.0.
  4. Sort the Entry Table by the values in the Custom Entry field, by clicking on the relevant column header. The Table rows will be sorted by the alphabetical order of the number, not the numerical value.
Paste an excerpt of your log file here

Metadata

Metadata

Assignees

No one assigned

    Labels

    [outdated] type: bugConfirmed bugs or reports that are very likely to be bugscomponent: maintablestatus: staleIssues marked by a bot as "stale". All issues need to be investigated manually.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions