mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 23:32:02 -05:00
Update sorting of custom ranks
They're now on par with Player instead of Driver.
This commit is contained in:
@@ -1562,8 +1562,8 @@
|
||||
},
|
||||
comparator: function (a, b) {
|
||||
if (a === b) return 0;
|
||||
var aRank = (this.rankOrder[this.room.users[a] ? this.room.users[a].substr(0, 1) : ' '] || 5);
|
||||
var bRank = (this.rankOrder[this.room.users[b] ? this.room.users[b].substr(0, 1) : ' '] || 5);
|
||||
var aRank = (this.rankOrder[this.room.users[a] ? this.room.users[a].substr(0, 1) : ' '] || 6);
|
||||
var bRank = (this.rankOrder[this.room.users[b] ? this.room.users[b].substr(0, 1) : ' '] || 6);
|
||||
if (aRank !== bRank) return aRank - bRank;
|
||||
return (a > b ? 1 : -1);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user