We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ee10e8 commit fbc29a0Copy full SHA for fbc29a0
platform-queue/src/main/java/com/flow/platform/queue/PriorityQueueItem.java
@@ -38,7 +38,7 @@ class ItemComparator implements Comparator<PriorityQueueItem> {
38
@Override
39
public int compare(PriorityQueueItem o1, PriorityQueueItem o2) {
40
if (Objects.equals(o1.getPriority(), o2.getPriority())) {
41
- return o2.getTimestamp().compareTo(o1.getTimestamp());
+ return o1.getTimestamp().compareTo(o2.getTimestamp());
42
}
43
44
return o2.getPriority().compareTo(o1.getPriority());
0 commit comments