matches ordered by date and id