in reply to sorting keys in Hash

You'd probably have more luck using sort.