Replace sorting algorithm from quick sort(?) to induced-sorting