order_by support for purchases page