Sort contacts by name ignoring case

pull/749/head
lilia 10 years ago
parent 2f935dfd5e
commit ef8a977f38

@ -84,7 +84,7 @@
// View to display the matched contacts from typeahead
this.typeahead_view = new Whisper.ConversationListView({
collection : new Whisper.ConversationCollection([], {
comparator: function(m) { return m.getTitle(); }
comparator: function(m) { return m.getTitle().toLowerCase(); }
})
});
this.$('.contacts').append(this.typeahead_view.el);

Loading…
Cancel
Save