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);
In reply to Re: Two sort in single Array set
by Anonymous Monk
in thread Two sort in single Array set
by snehit.ar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |