Oliver Katzer wrote:
> is it impossible to sort a hash by key?

Yes, because hashes are un-ordered containers.

Look up OrderedHash on the RAA for one possible solution.

Cheers,
Dave