my @sorted_keys = sort { $a <=> $b } keys(%foo); print join("\n",@hash{@sorted_keys}) [download]
In reply to Re^3: Permanently sort a hash by kennethk in thread Permanently sort a hash by Anonymous Monk