in reply to Two sort in single Array set
my @crit = grep {$_->{severity} eq 'critical'} @records; my @noncrit = grep {$_->{severity} ne 'critical'} @records; @crit = sort {$b->{event_age} <=> $a->{event_age}} @crit; @noncrit = sort {$a->{event_age} <=> $b->{event_age}} @noncrit; @records = (@crit, @noncrit);
|
---|