do not use qsort for tiny arrays