fix nonlambda realization of qsort