in reply to hash sort

This is a FAQ. See perlfaq4 on "How do I sort an array by (anything)?"