record sorted by date