backbone.collectionsubset
backbone.collectionsubset copied to clipboard
Subset with Comparators
Would be great to include the ability to add comparators while creating subsets:
App.Collections.entriesByTitle = App.Collections.allEntries.subcollection({
filter: function(task) {
return task;
},
comparator: sortByTitle
});
I implemented it in my own fork:
https://github.com/zawaideh/backbone.collectionsubset
I'd HIGHLY recommend https://github.com/dhruvaray/backbone-associations