in reply to A 2D Sorting problem

Your %dis Hash of Hashes uses only numeric keys so you should probably use an Array of Arrays instead and then you wouldn't have to sort the keys.