Skip to content

Commit

Permalink
fix ascending order
Browse files Browse the repository at this point in the history
  • Loading branch information
yenuGH committed Aug 5, 2023
1 parent b997a3e commit 94305ff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public void updateScoreList(Vector<Player> playersList) {
@Override
public int compare(Player o1, Player o2) {
if (o1.getScore() > o2.getScore()) {
return 1;
return -1;
}
if (o1.getScore() < o2.getScore()) {
return -1;
return 1;
}
return 0;
}
Expand Down

0 comments on commit 94305ff

Please sign in to comment.