foreach my $k (sort %hash) { # wie genau weiter? }