Skip to content

Commit

Permalink
showLeaderBoard sort logic changed
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidrezash2000 committed May 7, 2019
1 parent 3bccdc3 commit 380f30a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/company/Controllers/AccountController.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static void showLeaderBoard() {
if (o1.getWins() == o2.getWins()){
return o1.getUsername().compareTo(o2.getUsername());
} else {
return o1.getWins() - o2.getWins();
return o2.getWins() - o1.getWins();
}
});
AccountView.printLeaderBoard(leaderBoard);
Expand Down

0 comments on commit 380f30a

Please sign in to comment.