sort{ $hash{$a} cmp $hash{$b} or $a cmp $b }keys %hash