Changes the qsort function