Skip to content

Instantly share code, notes, and snippets.

@rightson
Created July 17, 2012 16:28
var People = Backbone.Collection.extend({
model: Person,
comparator: function(person, person2) {
return person.get('name') < person2.get('name');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment