added ordering to get_orders