code cleanup: remove unused qsort()