This is a FAQ. See perlfaq4 on "How do I sort an array by (anything)?".
In reply to Re: Array of Hashes and sorting by values by Corion in thread Array of Hashes and sorting by values by pandelis