Sort identities case-insensitive.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 15 Sep 2011 19:36:03 +0000 (21:36 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 15 Sep 2011 19:36:26 +0000 (21:36 +0200)
src/main/java/net/pterodactylus/wotns/main/IdentityComparator.java

index ca540a7..c903a23 100644 (file)
@@ -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());
                }
 
        }