From acc2c6f536eb2e2c78bd1a0f3ba97d6265e0adc3 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 28 Jan 2015 18:48:21 -1000 Subject: [PATCH] Sort contact selector by title --- js/views/new_conversation_view.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/views/new_conversation_view.js b/js/views/new_conversation_view.js index 39bbd889..1dab6ba9 100644 --- a/js/views/new_conversation_view.js +++ b/js/views/new_conversation_view.js @@ -45,9 +45,9 @@ var Whisper = Whisper || {}; this.typeahead_collection = new typeahead(); this.typeahead_view = new Whisper.ConversationListView({ - collection : new (Whisper.ConversationCollection.extend({ - comparator: 'name' - }))(), + collection : new Whisper.ConversationCollection({ + comparator: function(m) { return m.getTitle(); } + }), className: 'typeahead' });