in reply to Sorting Problem
It always amazes me how I can mess with something for an hour and someone can come and solve my problem with one simple line!
perldoc -q "sort a hash"
-QM -- Quantum Mechanics: The dreams stuff is made of