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

Allow sorting of entities in get() derived stores #2

Open
tony-sull opened this issue May 6, 2021 · 0 comments
Open

Allow sorting of entities in get() derived stores #2

tony-sull opened this issue May 6, 2021 · 0 comments

Comments

@tony-sull
Copy link
Owner

Right now there's no way to sort entities in the store. I skipped this on purpose for v1.0, I didn't want to paint the API into a corner with a bad sorting solution.

After playing around with it I think the best approach is to allow get to accept an optional sort function. I wasn't sure at first if sorting should be done when entities are added to the store, but that doesn't really help since one store may have two different derived stores that need to be sorted differently.

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

1 participant