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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View file

@ -151,6 +151,8 @@ public class Session {
userData.setAvatarId(1016); userData.setAvatarId(1016);
} else if (userName.equals("Ayrat")) { } else if (userName.equals("Ayrat")) {
userData.setAvatarId(1018); 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> { class UserNameSorter implements Comparator<UsersView> {
@Override @Override
public int compare(UsersView one, UsersView two) { public int compare(UsersView one, UsersView two) {
return one.getUserName().compareTo(two.getUserName()); return one.getUserName().compareToIgnoreCase(two.getUserName());
} }
} }