sort method update