Sorts have been modified to now register both indices of the swaps.