sort keys { $a <=> $b } %hash #### sort { $a cmp $b } keys %hash