Marcin Górski wrote: > Hi, > I use NetBeans as IDE for Ruby. I tested my script on JRuby and got > result I expected. The problem concern Hash and each_key iterator. I > have diffrent result on Ruby 1.8.7. (snip) > > I would like to have the same sequence as in JRuby. Which iterator > should I use? Thank you for help. I don't think you're going to get it. In 1.8.7 hashes are by definition unordered and the actual order is implementation-specific. -- MagickWand for Ruby - http://magickwand.rubyforge.org/