In exchange sorts, an optimization should be introduced to avoid swaps where both elements are the same. This can happen, for instance, in quicksort.
In exchange sorts, an optimization should be introduced to avoid swaps where both elements are the same. This can happen, for instance, in quicksort.