title: eager loading not working with order() clause in rails
body: <p>I am using this query to get my data</p>
  
  <pre><code>user = User.includes(:skills).order(user: :id)
  </code></pre>
  
  <p>it is working fine. but when i try to display skills by alphabetical order like below</p>
  
  <pre><code>user.skills.order(name: :asc)
  </code></pre>
  
  <p>It shows in logs that it goes in the database as <code>order()</code> is an <code>activerecord</code> method. It seems like <code>eager loading</code> is failing here because what's the point to use eager loading if it has to go in the database anyway. </p>
  
  <p>Can anyone guide me what is a good way to do this.</p>