legion icon indicating copy to clipboard operation
legion copied to clipboard

Query with ordering / sorting?

Open cmaughan opened this issue 4 years ago • 0 comments

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....

cmaughan avatar Jan 03 '22 12:01 cmaughan