Rewrite the sort algorithm.