correct qsort