Sorting data retrieved by date ASC