in reply to sorting on subkey of hash of hashes
Just the other day, I posted some code that sorted stuff in HTML using XML::Twig - I think that the same idea could be employed here.