-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I've tried sorting a view by entity id, however that does not work. What would be the correct way to sort entities without copying them?
auto view = registry.view<const ecs::entity&>().each()
std::sort(view.begin(), view.end(), [](std::tuple<const ecs::entity&> a, std::tuple<const ecs::entity&> b){
return std::get<0>(a).id() < std::get<0>(b).id();
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request