I've just logged on for the first time for almost a year and saw your unanswered question. It's really quite simple.
my @sorted_phrases = sort { $b->{count} <=> $a->{count} or $b->{sort_number} <=> $a->{sort_number} } values %$strings;
It's really worth reading the Perl FAQ. See How do I sort an array by (anything)?
In reply to Re^3: Trying to make a string generated like google
by davorg
in thread Trying to make a string generated like google
by ultranerds
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |