is this required for searchsorted?
isn't it only some old hack due to the lack of a portable qsort_r type function. I think its also obsolete in regular sort code now too.