parallelizes text sorting