Help for this page

Select Code to Download


  1. or download this
    print "$_ => $hash{$_}\n" for sort {$hash{$b} <=> $hash{$a} || $a cmp 
    +$b} keys %hash;
    
  2. or download this
    use strict;
    use warnings;
    ...
    print "$_ => $hash{$_}\n"
        for sort {$hash{$b} <=> $hash{$a} || $collator->cmp($a,$b)} keys %
    +hash;