my $child = $visitor->getResult;
my $uid = $child->getUID if $child;
my $match = $c->actions->{private}->{$uid}->{$action} if $uid;
- push @results, [$match] if $match;
+ if ($match) {
+ $action eq 'end' ? unshift @results, [$match] : push @results,
+ [$match];
+ }
$parent = $child if $child;
}
return \@results;