Sorting algorithm completed.