Update sorting of custom ranks

They're now on par with Player instead of Driver.
This commit is contained in:
Guangcong Luo
2015-09-11 00:06:18 -04:00
parent f4ff8d70c6
commit 59a0fde5b8

View File

@@ -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);
},