On 25 July 2012 13:35, Erwin <[email protected]> wrote:
>  I am using this scope , in which geo_ids is a sorted array of
> Ids ...
>
>  scope :geo_filtered_with, lambda { |geo_ids|
>     where(:id => geo_ids)
>   }
>
> is the resulting output always sorted according to this order ? or
> should I modify it ?

Since you have not specified any sort specification the order is not
defined.  If you want a particular order you must specify it.

Colin

>
> thanks for your feedback
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to