qsort working