This is a FAQ. See perlfaq4 on "How do I sort an array by (anything)?"
In reply to Re: hash sort by Corion in thread hash sort by Anonymous Monk