From ef8a977f38fe45ef54ed0ab6477ab2a7df2d88df Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 19 Jun 2015 15:48:00 -0700 Subject: [PATCH] Sort contacts by name ignoring case --- js/views/recipients_input_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/views/recipients_input_view.js b/js/views/recipients_input_view.js index 8dfdcc43..1e446b9f 100644 --- a/js/views/recipients_input_view.js +++ b/js/views/recipients_input_view.js @@ -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);