Add order_by query to process view command