Skip to content

Commit

Permalink
add comparator to contacts collection
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsulc committed Oct 22, 2013
1 parent 4b4f42b commit 34de829
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Expand Up @@ -41,7 +41,8 @@
ContactManager.Contact = Backbone.Model.extend({});

ContactManager.ContactCollection = Backbone.Collection.extend({
model: ContactManager.Contact
model: ContactManager.Contact,
comparator: "firstName"
});

ContactManager.ContactItemView = Marionette.ItemView.extend({
Expand Down

0 comments on commit 34de829

Please sign in to comment.