On Jun 17, 2014, at 7:38 AM, Walter Lee Davis <[email protected]> wrote:
> Your code is correct: some_reference.order('kind DESC') is the correct way to
> get the order you are asking for. Remember that if you only have three
> possible values, the implicit sort of the members within each kind will
> probably be the ID, all other things being equal.
There is no "implicit" sort in SQL, the order within each kind will be
indeterminate.
--
Scott Ribe
[email protected]
http://www.elevated-dev.com/
(303) 722-0567 voice
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/DBB29126-AC9A-4011-9318-FB154B864332%40elevated-dev.com.
For more options, visit https://groups.google.com/d/optout.