update query to order matches by date