In your elegant solution, you need to switch around your second conditional to:
$b->[1] <=> $a[1]In reply to Re^4: beginner - ordering tuples
by 7stud
in thread beginner - ordering tuples
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |