Handle kernel qsort