From ed5a7db386a06cf6fe9afcc483ca563d1d7939b0 Mon Sep 17 00:00:00 2001 From: "Cathy J. Fitzpatrick" Date: Fri, 1 Feb 2013 04:14:04 -0700 Subject: [PATCH] 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. --- js/sim.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/sim.js b/js/sim.js index 484f7e70c..1f1107583 100644 --- a/js/sim.js +++ b/js/sim.js @@ -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){