Change sort algorithm.