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:
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
BIN
Mage.Client/src/main/resources/avatars/special/20.gif
Normal file
BIN
Mage.Client/src/main/resources/avatars/special/20.gif
Normal file
Binary file not shown.
After ![]() (image error) Size: 2.9 KiB |
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue