Fix: MUCs sorting

This commit is contained in:
Sebastien Hut 2014-11-21 17:11:05 +01:00
parent 93cae83503
commit e38fdf8b9e
2 changed files with 1 additions and 2 deletions

View File

@ -40,7 +40,7 @@ module.exports = HumanModel.define({
fn: function () { fn: function () {
var disp = this.name; var disp = this.name;
if (!disp) disp = this.jid.jid; if (!disp) disp = this.jid.jid;
return disp.split('@')[0]; return disp.split('@')[0];
} }
}, },
displayUnreadCount: { displayUnreadCount: {

View File

@ -10,7 +10,6 @@ module.exports = BaseCollection.extend({
type: 'mucs', type: 'mucs',
model: MUC, model: MUC,
comparator: function (model1, model2) { comparator: function (model1, model2) {
return 0;
var name1 = model1.displayName.toLowerCase(); var name1 = model1.displayName.toLowerCase();
var name2 = model2.displayName.toLowerCase(); var name2 = model2.displayName.toLowerCase();
if (name1 === name2) { if (name1 === name2) {