Add ! and # users to the sort order

Users whose names are prefaced by ! (mute) or # (namelock) were
not included in the rank sort order, causing unusual sort results.
This commit is contained in:
Cathy J. Fitzpatrick 2013-02-01 04:14:04 -07:00
parent 51712746c8
commit ed5a7db386

View File

@ -1830,7 +1830,9 @@ function Lobby(id, elem) {
'@': 1,
'%': 1,
'+': 1,
' ': 0
' ': 0,
'!': 0,
'#': 0
};
var RankOrder = {
'~': 1,
@ -1838,7 +1840,9 @@ function Lobby(id, elem) {
'@': 3,
'%': 4,
'+': 5,
' ': 6
' ': 6,
'!': 7,
'#': 8
};
var users = [];
if (selfR.userList) users = Object.keys(selfR.userList).sort(function(a,b){