debugging commit... trying to factor out qsort as a problem