title: Order_by multiple fields, including a boolean
body: <p>I'm trying to order my default_scope in a way that the itens with the boolean <code>important = true</code> show first, and all order by <code>created_at</code> desc.</p>
  
  <p>So, I have the following code:</p>
  
  <pre><code>default_scope order_by(:important =&gt; :desc, :created_at =&gt; :desc)
  </code></pre>
  
  <p>But, looks like <code>important</code> field order is ignored.</p>
  
  <p>How can I made it work?</p>
  
  <p>Thanks in advance</p>
  
  <hr>
  
  <p>EDIT:</p>
  
  <p>I just shift the order of the order params and it works:</p>
  
  <pre><code>default_scope order_by(:created_at =&gt; :desc, :important =&gt; :desc)
  </code></pre>
  
  <p>Just that simple.</p>