in reply to Numerical sorting issues with a hash of hashes
will sort based on the number of keys in the subhashes, not their value. (or so I think, since output of keys will be cast scalar by the cmp operator, yes?)sort { keys %{$event_hash{$key}{$b}} cmp keys %{$event_hash{$key}{$a}} + } keys %event_hash;
|
|---|