Max Williams wrote: > The weird thing is, i've gone to my console to try it out, and rails is > now always giving me the resources back in the order of the id array > anyway, whether i use the field option or not. It's the same with any > of my AR classes! I'm sure that this didn't used to happen though...i > think i'm going crazy. Can anyone tell me if this is normal?
You are not going crazy. MySQL may, but is not required to, return the objects in the order of the array. So, the behavior will change without warning. You still need to sort after the fetch. -- 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-t...@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.