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' });