in reply to hash of hashes sort second level keys
Thanks for all of the replies. I thought the answer may be along the lines of what all of you are saying. My actual problem is quite a bit more complex than this but the answers to this simple question tells me there is no easy way to accomplish what I am trying to do. I actually have a hohref, hr, that is 5 layers deep. I am trying to sort the entire hr on the keys of layer 4 first and layer 3 second. Since the hr is linear, I am stepping through the entire hash recording each set of keys in an array. I then bubble sort the keys keeping track of each relationship and Voila I have the output for which I was looking. Is there a better way to do this?