in reply to sub-sorting a hash

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.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg