in reply to Sorting Complex Data Structure
This is a FAQ. See perlfaq4 on How do I sort an array by (anything)?