Fix order_by on empty sequences.