Not a great advert for Perl, that, since it doesn't implement the quoted action correctly...
my @large_orders = sort { $a->{items} <=> $b->{items} } grep { $_->{total} > 100 } @orders;
Embarrassing.For the record, this would be the code with missing part included:
my @large_orders = sort { $a->{items} <=> $b->{items} } grep { $_->{total} > 100 } @orders;