my %counts = %{ $self->{_counts} }; my @sorted_keys = sort { $counts{$a} <=> $counts{$b} } keys %counts;
And sort by counts (ascending).
In reply to Re^3: Hash value sorting
by moritz
in thread Hash value sorting
by iHutch105
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |