sort photos when update set