@sorted = sort({$b<=>$a}values(%memhash)); for ($i=0; $i<=$#sorted; $i++) { my $paar = $sorted[$i]; print "$paar = $memhash{$paar}
" ; } print "\n" ;