From: Stefano Mioli Date: 2011-07-16T05:37:11+09:00 Subject: Re: Comparing hashes based on their keys On 7/15/11 9:47 PM, Rob Biedenharn wrote: > On Jul 15, 2011, at 3:01 PM, Stefano Mioli wrote: >> but h1.keys == h2.keys would return false in this context. > > then sort them: > > return false unless self.keys.sort == other.keys.sort > > Since they are Hashes, I'd certainly hope that the order of the keys > didn't matter. ;-) Hah! True. I must be very tired! ;) Thanks again. -- Stefano Mioli