I think I have the right idea but there\'s some syntax/convention thing I\'m messing up, because I get the error \"Global symbol %timeHash requires explicit package name\".
use List::UtilsBy qw( rev_nsort_by ); foreach my $key ( rev_nsort_by { $timeHash{$_} } keys %timeHash ) { ... }