Updated search to sort by date