Sort contact selector by title
This commit is contained in:
parent
51dd287b60
commit
acc2c6f536
1 changed files with 3 additions and 3 deletions
|
@ -45,9 +45,9 @@ var Whisper = Whisper || {};
|
||||||
|
|
||||||
this.typeahead_collection = new typeahead();
|
this.typeahead_collection = new typeahead();
|
||||||
this.typeahead_view = new Whisper.ConversationListView({
|
this.typeahead_view = new Whisper.ConversationListView({
|
||||||
collection : new (Whisper.ConversationCollection.extend({
|
collection : new Whisper.ConversationCollection({
|
||||||
comparator: 'name'
|
comparator: function(m) { return m.getTitle(); }
|
||||||
}))(),
|
}),
|
||||||
className: 'typeahead'
|
className: 'typeahead'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue