sub hashValueDescendingNum { length($b) <=> length($a) || $count{$b} <=> $count{$a} }
On "ties", <=> returns zero, causing the RHS of the || to be evaluated.
In reply to Re: hash sorting
by ikegami
in thread hash sorting
by perlcat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |