From: Javier Valencia Date: 2006-07-25T23:21:38+09:00 Subject: Re: Hash order bug? Nicolas Despr�s wrote: > On 7/25/06, Javier Valencia wrote: > >> I have this piece of simple code: >> >> ---------------------------------------------- >> def foo >> return 5 >> end >> >> a = {:gr => false, :und => false, :det => true, :sta => false, :inv => >> false} >> puts a.inspect >> ---------------------------------------------- >> >> when I execute it i get a totally unordered hash: >> > > by definition a hash table is not ordered. > > [...] > Well, i don't mind ordering alphabetically, just to maintain their construction order, like an array. Anyway, thanks all for quick responses, hope to see that implemented in core-ruby soon :) Thanks