in reply to keys and values order on a hash

I would not feel warm and fuzzy writing code with dependencies like that. I would find another way to do it. "Code like that" is what tends to bite you in the punctuation * mark.