Ok, think about what your sort routine does:
sort {$a <=> $b || $a cmp $b}
It means that if $a and $b are equal numerically, then it will do a string comparison on them.
In reply to Re: Puzzeled about Sorting
by Anonymous Monk
in thread Puzzeled about Sorting
by pelagic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |