in reply to Re: sort on hash / hash / hash doesn't work
in thread sort on hash / hash / hash doesn't work

yes, but better sort numerically than lexicographically:
foreach my $date ( sort { $a <=> $b } keys %{ $data{$cat} }) { # ^^^^^^^^^^^^^