From 80ce2d95e00bc6a336abad04205a60640243e15a Mon Sep 17 00:00:00 2001 From: lilia Date: Sun, 25 Jan 2015 22:13:14 -1000 Subject: [PATCH] Sort contacts by name in compose flow --- js/views/new_conversation_view.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/views/new_conversation_view.js b/js/views/new_conversation_view.js index 9609d72b..f72f735e 100644 --- a/js/views/new_conversation_view.js +++ b/js/views/new_conversation_view.js @@ -48,7 +48,9 @@ var Whisper = Whisper || {}; this.typeahead_collection = new typeahead(); this.typeahead_view = new Whisper.ConversationListView({ - collection : new Whisper.ConversationCollection(), + collection : new (Whisper.ConversationCollection.extend({ + comparator: 'name' + }))(), className: 'typeahead' });