query ordered by updatedAt