More changes in sorting algorithm