-
Beta Was this translation helpful? Give feedback.
Answered by
sigvik
Jan 15, 2025
Replies: 1 comment
-
Figured it out, it was very simple:) const players = ECS.world.with('id')
const sortedPlayers = [...players].sort((a, b) => {
return a.id - b.id
})
return (
<ECS.Entities in={sortedPlayers}>
{(entity) => (
<Player/>
)}
</ECS.Entities>
) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sigvik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured it out, it was very simple:)