Skip to content

Query with ordering / sorting? #293

@cmaughan

Description

@cmaughan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions