Use following code for sorting
sort {$tmp = $saved_key{$b} <=> $saved_key{$a}; $tmp = $a cmp $b if ($tmp == 0); $tmp} keys %saved_keyTemporary variable is not needed of course
In reply to Re: Twice the pleasure of sorting a hash
by ph0enix
in thread Twice the pleasure of sorting a hash
by coldfingertips
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |