in reply to Re^3: Sorting and ranking
in thread Sorting and ranking

I need to keep track of both so as to print them in the end. But I do sort based on the values, I don't think this is the problem.