pthr_sort