in reply to Sort a Hash 3 Levels Deep

An appropriate example for sorting structures can be found in Sort lists/Data Structures. How is your hash organized? That is not entirely clear from you example. Your print suggests it is not, in fact, 3 levels deep but is a set of three-element hashes, which is bad for your problem as presented. Is the key ($site1) just a anonymous hash? Example code for how you build your hash would be very helpful.