fixes to partial_sort