mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-06-02 22:09:20 -05:00
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:
parent
51712746c8
commit
ed5a7db386
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user