in reply to sorting hash keys

read the docs: perldoc -f sort

anyway...

@sorted_keys = sort { $a <=> $b } keys %results;