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.
In reply to Re^2: Sorting based on any column
by Anonymous Monk
in thread Sorting based on any column
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |