legion
legion copied to clipboard
Query with ordering / sorting?
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....