From: Yukihiro Matsumoto Date: 2006-08-21T19:28:40+09:00 Subject: Re: Why Does Hash Apparently Reorder Its Internal Representation And Other Associated Ponderings Hi, In message "Re: Why Does Hash Apparently Reorder Its Internal Representation And Other Associated Ponderings" on Mon, 21 Aug 2006 19:26:10 +0900, "Robert Dober" writes: |I am just dreaming: | |ohhhhhh = OrderedHash.new { |k1,k2| tell_my_friend_what_order_is(k1, k2) } | |class MyOH < OrderedHash | def key_order(k1, k2) ### Here we could define Mixins for common key |orders | |And would asking for having two like the following be too much? I think it's not just "ordered" but "sorted". matz.