in reply to Re: Sorting based on any column
in thread Sorting based on any column

column #2 is (4,9) and looks to already be sorted correctly

Off by one - index 2 is the third column, (5,10). Also the OP appears to want a reverse sort - at least I'm assuming that based on the $b being before $a and the OP saying the current code doesn't work.