Skip to content

Commit

Permalink
Adjust the sorting when there are null values.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyuyaoyy committed Sep 25, 2023
1 parent d96968e commit 9c4bbbd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ private Comparator<Node> sortByResource() {
RMNode nodeBRm = (RMNode) nodeB;
if (nodeARm.getNodeResource() == null
|| nodeARm.getNodeResource().getLeftResource() == null) {
return -1;
return 1;
} else if (nodeBRm.getNodeResource() == null
|| nodeBRm.getNodeResource().getLeftResource() == null) {
return 1;
return -1;
} else {
if (nodeARm
.getNodeResource()
Expand Down

0 comments on commit 9c4bbbd

Please sign in to comment.