From: David ‘Bombe’ Roden Date: Thu, 15 Sep 2011 19:36:03 +0000 (+0200) Subject: Sort identities case-insensitive. X-Git-Tag: 0.0.3^2~9 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3e922beb88bc9b7d9dacaf3cb67c31d4530b8151;p=WoTNS.git Sort identities case-insensitive. --- 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()); } }