order the images based on updatedAt