make qsortv() return the length