Skip to content

How to group or sort in a query? #25

Answered by friflo
vkensou asked this question in Q&A
Discussion options

You must be logged in to vote

The ECS has currently not functionality for sorting.
You can use query.ToEntityList().ToArray() to get the entities of a query as an Entity[].
This array can than be sorted with Array.Sort<>().

See Example

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vkensou
Comment options

@friflo
Comment options

Answer selected by vkensou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants