fixes bug in IssueSorter where ETA did not get sorted correctly

Fri, 23 Oct 2020 11:44:02 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 23 Oct 2020 11:44:02 +0200
changeset 143
4a391ffa30d3
parent 142
c0549bcdf2ab
child 144
7e06b75cf1b9

fixes bug in IssueSorter where ETA did not get sorted correctly

src/main/java/de/uapcore/lightpit/viewmodel/util/IssueSorter.java file | annotate | diff | comparison | revisions
--- a/src/main/java/de/uapcore/lightpit/viewmodel/util/IssueSorter.java	Fri Oct 23 11:17:37 2020 +0200
+++ b/src/main/java/de/uapcore/lightpit/viewmodel/util/IssueSorter.java	Fri Oct 23 11:44:02 2020 +0200
@@ -48,7 +48,7 @@
                 if (left.getEta() != null && right.getEta() != null)
                     result = left.getEta().compareTo(right.getEta());
                 else
-                    result = left != null ? -1 : 1;
+                    result = left.getEta() != null ? -1 : 1;
                 break;
             case UPDATED:
                 result = left.getUpdated().compareTo(right.getUpdated());

mercurial