Infact it is something strange: while in motorbike this morning i thought i was wrong (in my previous post): the results of subtraction must be valid too when sorting: big minus less is greater than zero; equal minus equal is 0 and little minus big is less than zero:
perl -e "print join qq(\n),sort {$a - $b} @ARGV" 33 1 2 99
1
2
33
99
# same result using <=> or -
using big nums give me incorrect ordering using subtraction when one number is ten digits or more:
perl -e "print join qq(\n),sort {$a - $b} @ARGV" 10000000000 3 2
10000000000
2
3
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.