Skip to content
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

Sort by priority broken #6222

Closed
GSinsley opened this issue Mar 31, 2020 · 2 comments
Closed

Sort by priority broken #6222

GSinsley opened this issue Mar 31, 2020 · 2 comments
Labels
bug Confirmed bugs or reports that are very likely to be bugs good first issue An issue intended for project-newcomers. Varies in difficulty. maintable ui

Comments

@GSinsley
Copy link

JabRef version
JabRef 5.1--2020-03-31--97fcf38
Windows 10 10.0 amd64
Java 14

Sorting by priority does not appear to work correctly in Jabref 5.x. (I originally saw the problem in 5.0, and have verified that it persists in the latest 5.1 snapshot.) In older versions of Jabref, when sorting by priority all red flags would appear first, followed by yellow and green flags, followed by blank priorities. In the latest version all priorities are lumped together followed by entries with no priority, as seen in the attached screenshot.

Steps to reproduce the behavior:

  1. Add priority as a column in the entry table.
  2. Assign priorities to some, but not all entries.
  3. Click twice on the priority column to sort by priority descending.
  4. Observe the order of entries.

image

Log File
Paste an excerpt of your log file here
@Siedlerchr Siedlerchr added bug Confirmed bugs or reports that are very likely to be bugs maintable ui labels Mar 31, 2020
@Siedlerchr Siedlerchr added bug Confirmed bugs or reports that are very likely to be bugs and removed bug Confirmed bugs or reports that are very likely to be bugs labels Mar 31, 2020
@Siedlerchr Siedlerchr added the good first issue An issue intended for project-newcomers. Varies in difficulty. label Mar 31, 2020
@Siedlerchr
Copy link
Member

I took a quick look and could confirm this isssue.
There probably needs to be implemented a new Comparator for that field like for the others.

if (specialField == SpecialField.RANKING) {
column.setComparator(new RankingFieldComparator());
}
// Added comparator for Read Status
if (specialField == SpecialField.READ_STATUS) {
column.setComparator(new ReadStatusFieldComparator());
}
column.setSortable(true);

dextep added a commit to dextep/jabref that referenced this issue Apr 9, 2020
tobiasdiez pushed a commit that referenced this issue Apr 10, 2020
* Fix sort by priority (#6222)

* Change in CHANGELOG.
@tobiasdiez
Copy link
Member

Thanks to @dextep this should be fixed in the latest development version. Could you please check the build from http://builds.jabref.org/master/. Thanks! Please remember to make a backup of your library before trying-out this version.

Siedlerchr added a commit that referenced this issue Apr 13, 2020
* upstream/master: (23 commits)
  Bump junit-vintage-engine from 5.6.1 to 5.6.2 (#6276)
  Number of items found in ImportEntriesDialog (#6248)
  Fix dependency label
  Bump flexmark-ext-gfm-strikethrough from 0.61.0 to 0.61.6 (#6273)
  Bump unirest-java from 3.7.01 to 3.7.02 (#6275)
  Bump junit-platform-launcher from 1.6.1 to 1.6.2 (#6279)
  Bump flexmark-ext-gfm-tasklist from 0.61.0 to 0.61.6 (#6278)
  Bump junit-jupiter from 5.6.1 to 5.6.2 (#6274)
  Bump flexmark from 0.61.0 to 0.61.6 (#6280)
  Bump classgraph from 4.8.68 to 4.8.69 (#6277)
  Bump org.beryx.jlink from 2.17.4 to 2.17.5 (#6281)
  Improve performance (#6270)
  Improve calculation of matched entries upon change (#6268)
  Fix sort by priority (#6222) (#6265)
  Squashed 'src/main/resources/csl-styles/' changes from 88726cb..db54e56
  Use https everywhere
  Entry editor: Add more tooltips and wrap tooltips if necessary (#6239)
  JDK14 switch - and checkstyle skipping (#6250)
  Bump postgresql from 42.2.11 to 42.2.12 (#6254)
  Bump unirest-java from 3.7.00 to 3.7.01 (#6253)
  ...
Siedlerchr added a commit that referenced this issue Apr 13, 2020
* upstream/master: (287 commits)
  Bump junit-vintage-engine from 5.6.1 to 5.6.2 (#6276)
  Number of items found in ImportEntriesDialog (#6248)
  Fix dependency label
  Bump flexmark-ext-gfm-strikethrough from 0.61.0 to 0.61.6 (#6273)
  Bump unirest-java from 3.7.01 to 3.7.02 (#6275)
  Bump junit-platform-launcher from 1.6.1 to 1.6.2 (#6279)
  Bump flexmark-ext-gfm-tasklist from 0.61.0 to 0.61.6 (#6278)
  Bump junit-jupiter from 5.6.1 to 5.6.2 (#6274)
  Bump flexmark from 0.61.0 to 0.61.6 (#6280)
  Bump classgraph from 4.8.68 to 4.8.69 (#6277)
  Bump org.beryx.jlink from 2.17.4 to 2.17.5 (#6281)
  Improve performance (#6270)
  Improve calculation of matched entries upon change (#6268)
  Fix sort by priority (#6222) (#6265)
  Squashed 'src/main/resources/csl-styles/' changes from 88726cb..db54e56
  Use https everywhere
  Entry editor: Add more tooltips and wrap tooltips if necessary (#6239)
  JDK14 switch - and checkstyle skipping (#6250)
  Bump postgresql from 42.2.11 to 42.2.12 (#6254)
  Bump unirest-java from 3.7.00 to 3.7.01 (#6253)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs good first issue An issue intended for project-newcomers. Varies in difficulty. maintable ui
Projects
Archived in project
Development

No branches or pull requests

3 participants