Hashes won't keep the insertion order in Ruby (or any other language,
you'll usually have to use some kind of ordered hash).

-
Maurício Linhares
http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr



On Wed, Jul 22, 2009 at 9:23 AM, Hemant
Bhargava<rails-mailing-l...@andreas-s.net> wrote:
>
> Hi Guyz,
>
> Problem with me is that whenever i am storing values in my hash.. it
> stores perfectly ..
>
> But when i am trying to print it .. i mean try to view its contents ..
> then contents coming in wrong order .. which i dont want ..
>
> Can sum one help me bit about it .. ?
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to