Sort contacts by name in compose flow

This commit is contained in:
lilia 2015-01-25 22:13:14 -10:00
parent 6d81011f6a
commit 80ce2d95e0

View file

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