my @sorted = sort {sprintf ('%09d', $a) cmp sprintf ('%09d', $b)} keys + %jetsons; [download]
In reply to Re: Numeric sorting WITHOUT <=> by GrandFather in thread Numeric sorting WITHOUT <=> by Anonymous Monk