Change
sort { $bar{$b}[0]<=>$bar{$a}[0] }
to
sort { $bar{$b}[0]<=>$bar{$a}[0] || $bar{$b}[1]<=>$bar{$a}[1] }
In reply to Re: Double sort in hash values
by ikegami
in thread Double sort in hash values
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |