Sort contact selector by title

pull/749/head
lilia 10 years ago
parent 51dd287b60
commit acc2c6f536

@ -45,9 +45,9 @@ var Whisper = Whisper || {};
this.typeahead_collection = new typeahead(); this.typeahead_collection = new typeahead();
this.typeahead_view = new Whisper.ConversationListView({ this.typeahead_view = new Whisper.ConversationListView({
collection : new (Whisper.ConversationCollection.extend({ collection : new Whisper.ConversationCollection({
comparator: 'name' comparator: function(m) { return m.getTitle(); }
}))(), }),
className: 'typeahead' className: 'typeahead'
}); });

Loading…
Cancel
Save