From: Lee Daekeun Date: 2013-03-13T21:06:28+09:00 Subject: Re: question on watir --089e0111af8a3c33f904d7cd3c2a Content-Type: text/plain; charset=EUC-KR Content-Transfer-Encoding: quoted-printable As far as I know, there is no "order" in hash. If the order matters, you should use list instead of hash. 2013. 3. 13. =BF=C0=C8=C4 9:00=BF=A1 "Raj pal" =B4=D4= =C0=CC =C0=DB=BC=BA: > Thank you very much this would help me, > > and I have another question, > > consider the below hash, > > a=3D{1=3D>2,3=3D>4,5=3D>6} > > when I try to print the key values, it is not printing in the order > > a.each do |key,value| > puts key > end > > it's printing 5 3 1 > > Is there any way could I able to print in order.? > > RAJ > > -- > Posted via http://www.ruby-forum.com/. > > --089e0111af8a3c33f904d7cd3c2a Content-Type: text/html; charset=EUC-KR Content-Transfer-Encoding: quoted-printable

As far as I know, there is no "order" in hash. If = the order matters, you should use list instead of hash.

--089e0111af8a3c33f904d7cd3c2a--