Don't be a total idiot in qsort