1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-03-31 01:07:39 -09:00

Sort user list case insensitive.

This commit is contained in:
LevelX2 2014-01-26 11:26:45 +01:00
parent a5c0ae1b41
commit 43fed81ff4
3 changed files with 3 additions and 1 deletions
Mage.Client/src/main/resources/avatars/special
Mage.Server/src/main/java/mage/server

Binary file not shown.

After

(image error) Size: 2.9 KiB

View file

@ -151,6 +151,8 @@ public class Session {
userData.setAvatarId(1016);
} else if (userName.equals("Ayrat")) {
userData.setAvatarId(1018);
} else if (userName.equals("Bandit")) {
userData.setAvatarId(1020);
}
}

View file

@ -206,6 +206,6 @@ class TimestampSorter implements Comparator<Table> {
class UserNameSorter implements Comparator<UsersView> {
@Override
public int compare(UsersView one, UsersView two) {
return one.getUserName().compareTo(two.getUserName());
return one.getUserName().compareToIgnoreCase(two.getUserName());
}
}