Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subset with Comparators #6

Open
chiplay opened this issue Apr 10, 2013 · 2 comments
Open

Subset with Comparators #6

chiplay opened this issue Apr 10, 2013 · 2 comments

Comments

@chiplay
Copy link

chiplay commented Apr 10, 2013

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
});
@zawaideh
Copy link

zawaideh commented Dec 5, 2013

I implemented it in my own fork:

https://github.com/zawaideh/backbone.collectionsubset

@chiplay
Copy link
Author

chiplay commented Dec 6, 2013

I'd HIGHLY recommend https://github.com/dhruvaray/backbone-associations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants