avoid crashing when nel==0 is passed to qsort