Sort contacts by name ignoring case

This commit is contained in:
lilia 2015-06-19 15:48:00 -07:00
parent 2f935dfd5e
commit ef8a977f38

View file

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