my $sorted = []; @$sorted = ... [download]
Sort returns an array, not an arrayreference.
In reply to Re: How to sort a AoH reference by dragonchild in thread How to sort a AoH reference by bradcathey