in reply to Re: •Re: Numerical sorting issues with a hash of hashes
in thread Numerical sorting issues with a hash of hashes

You need to call sort in your for condition It only needs a small change to sort out
foreach my $key ( keys %event_hash ) { print $key, "\n"; for my $key2 ( sort { $a <=> $b } keys %{ $event_hash{$key} } ) { + print "$key2=$event_hash{$key}{$key2}\n"; } print "\n"; }