Sorting process updated.

Behold the infinite loop!