Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-41419] Fix comparison of ItemInfo objects
  • Loading branch information
firnkes committed Jan 25, 2017
1 parent 14df308 commit 2876ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/jenkins/advancedqueue/sorter/ItemInfo.java
Expand Up @@ -153,7 +153,7 @@ public int compareTo(ItemInfo o) {
if(this.getSortableInQueueSince() == o.getSortableInQueueSince()) {
return new Integer(this.getItemId()).compareTo(o.getItemId());
}
return new Long(this.getInQueueSince()).compareTo(o.getInQueueSince());
return new Long(this.getSortableInQueueSince()).compareTo(o.getSortableInQueueSince());
}
return Float.compare(this.getWeight(), o.getWeight());
}
Expand Down

0 comments on commit 2876ebf

Please sign in to comment.