Martin Boese wrote: > I am building a menu structure for rails that I'd like to store in a simple > Hash. > > Now I found out that ruby Hashes do not keep the order, like this program: > ... > Are there any workarounds for this? Or shall I rather write my own containers? You can use SortedHash. You can get it from the RAA. It preserves sort order. Cheers, Dave