Default sorting for entities #206
Answered
by
NetanelBasal
thedevtoni
asked this question in
Q&A
-
Is there any way to apply a default sorting to the store entities? |
Beta Was this translation helpful? Give feedback.
Answered by
NetanelBasal
Mar 27, 2022
Replies: 2 comments 2 replies
-
No. It's easy as You can also create custom operator: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
thedevtoni
-
Hi! How to reorder entities after a entitie was updated? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No. It's easy as
store.pipe(selectAllEntities(), map(v => sortBy(v)))
You can also create custom operator:
store.pipe(selectAllEntities(), sortBy())