fixing qsort post method to txt