From 3e922beb88bc9b7d9dacaf3cb67c31d4530b8151 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 15 Sep 2011 21:36:03 +0200 Subject: [PATCH] Sort identities case-insensitive. --- src/main/java/net/pterodactylus/wotns/main/IdentityComparator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/wotns/main/IdentityComparator.java b/src/main/java/net/pterodactylus/wotns/main/IdentityComparator.java index ca540a7..c903a23 100644 --- a/src/main/java/net/pterodactylus/wotns/main/IdentityComparator.java +++ b/src/main/java/net/pterodactylus/wotns/main/IdentityComparator.java @@ -37,7 +37,7 @@ public class IdentityComparator { */ @Override public int compare(Identity leftIdentity, Identity rightIdentity) { - return leftIdentity.getNickname().compareTo(rightIdentity.getNickname()); + return leftIdentity.getNickname().compareToIgnoreCase(rightIdentity.getNickname()); } } -- 2.7.4