Adding sorting by status for show_orders and show_orders by masterId