Make parallel_sort take a completion token.