in reply to Re: how do i sort hash by key numerically
in thread how do i sort hash by key numerically

I've set {$a<=>$b} to show you how to change the way the list should be sorted...
You could sort on :
key decreasing order : {$b<=>$a}
values-> {$hash{$a}<=>$hash{$b}}
key length -> {length{$a}<=>length{$b}}
or whatever...
  • Comment on Re: Answer: how do i sort hash by key numerically