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

Query with ordering / sorting? #293

Open
cmaughan opened this issue Jan 3, 2022 · 0 comments
Open

Query with ordering / sorting? #293

cmaughan opened this issue Jan 3, 2022 · 0 comments

Comments

@cmaughan
Copy link

cmaughan commented Jan 3, 2022

Is there a way to query entities with a given component, sorted by a value in the component?
I'm thinking of the case where entities represent 'Renderable' objects, which are sorted spatially. You'd want to visit them back->front for example.
I can't see such a thing in the docs, and I get that you could build a cache of the ordering by sorting entity ids yourself....

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