added order by date and quantity selection