migration script for parallel_sort