in reply to Re: Sorting AoH by two keysin thread Sorting AoH by two keys
UPDATE: it was a typo. I think nothingmuch meant
my $sorted = [ sort { $a->{under} <=> $b->{under} || $a->{order} <=> $b->{order} } @$aoh ]; [download]