Sort contacts by name ignoring case
This commit is contained in:
parent
2f935dfd5e
commit
ef8a977f38
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@
|
||||||
// View to display the matched contacts from typeahead
|
// View to display the matched contacts from typeahead
|
||||||
this.typeahead_view = new Whisper.ConversationListView({
|
this.typeahead_view = new Whisper.ConversationListView({
|
||||||
collection : new Whisper.ConversationCollection([], {
|
collection : new Whisper.ConversationCollection([], {
|
||||||
comparator: function(m) { return m.getTitle(); }
|
comparator: function(m) { return m.getTitle().toLowerCase(); }
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
this.$('.contacts').append(this.typeahead_view.el);
|
this.$('.contacts').append(this.typeahead_view.el);
|
||||||
|
|
Loading…
Reference in a new issue