Tested both double and int qsorts