How do I order an instance variable using two columns?
I want to order after reel_order and reel_online which as a boolean and should be true.
I have tried this:
<% @movies.find(:all, :order => "reel_order, where(reel_online) = 1").each do |movie| %>
Is it possiable what activerecord or how to order this when using MySQL as database. I also want to know how to do it with a postgreSQL database.
UPDATE:
I am using this in my loop:
<% @movies.find(:all, :order => "reel_order, reel_online DESC").each do |movie| %>

The result is that the @movie is not ordered after reel_online. The reel_online is true when the eye is open. I want the open eyes to be at the top as expected.
reel_orderwith a secondary sort on the boolean result of thereel_online = 1expression?reel_onlineand choose only records wherereel_onlineis TRUE? It make no sense to me. Sorting make sense only when you have more than one possible values. When you limit to those which are true, you have only one possible value of that column