in reply to Re: Re: Re: How'd they do that...proportional horz. bars in poll results...
in thread How'd they do that...proportional horz. bars in poll results...

You can sort by value by changing
foreach my $key (keys(%$results)) {
in the above code to:
foreach my $key (sort {$results->{$b} <=> $results{$a}} keys %$results +) {
If you have a ton of results, this may be inefficient, and may want to use a Schwartzian transform instead. But it sounds like maybe you don't have to worry about that.