};
Order($mapped_by, $_->{reverse});
} else {
- die "XXX not implemented yet";
+ my $name = sprintf("ORDER__BY__%03i",++$order_gensym_count);
+ push @inside_select_list, Alias($name, $by);
+ Order(Identifier($name), $_->{reverse});
}
} @inside_order;