The FAQ How do I sort an array by (anything)? will probably help you.
For example, to sort by title:
@recs = sort { $a->{title} cmp $b->{title} } @recs;
The FAQ shows how to sort by multiple values in your hashes.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: sub-sorting a hash
by davorg
in thread sub-sorting a hash
by alexxx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |