change sort method