From 380f30a128ce7efa7a31c4722c268403065288d7 Mon Sep 17 00:00:00 2001 From: HaMiD Date: Tue, 7 May 2019 23:27:23 +0430 Subject: [PATCH] showLeaderBoard sort logic changed --- src/com/company/Controllers/AccountController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/company/Controllers/AccountController.java b/src/com/company/Controllers/AccountController.java index a2e08e5..bd5c0bf 100644 --- a/src/com/company/Controllers/AccountController.java +++ b/src/com/company/Controllers/AccountController.java @@ -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);