examples/cpp/queries/sorting/src/main.cpp
// Iterate query, printed values will be ordered
Iterate query, printed values will be ordered
Iterate query printed values will be ordered
void print_query(flecs::query<Position>& q) {
    q.each([](flecs::entity, Position& p) {
        std::cout << "{" << p.x << "," << p.y << "}" << std::endl;
    });
}
void print_query ( flecs :: query < Position > & q ) { q . each ( [ ] ( flecs :: entity , Position & p ) { std :: cout << " " << p . x << " " << p . y << " " << std :: endl ; } ) ; }
Iterate query, printed values will be ordered
Iterate query printed values will be ordered