in reply to Re: How do I keep the first key in a sorted hash?in thread How do I keep the first key in a sorted hash?
You can even do away with the intermediate array variable: