title: Rails/Ruby NoMethodError: undefined method `order' for #<Array:0x718c278>
body: <p>I want to execute the following:</p>
  
  <p>case 1:</p>
  
  <pre><code>x = Group.all[0].people
  x.class
  =&gt; Array
  x.order
  </code></pre>
  
  <p>fine.
  :)</p>
  
  <p>case 2:</p>
  
  <pre><code>y = Person.all
  y.class
  =&gt; Array
  y.order
  =&gt; NoMethodError: undefined method `order' for #&lt;Array:0x718c278&gt;
  </code></pre>
  
  <p>:(</p>
  
  <p>Both x and y contain the same type of item -  bunch of Person models.
  Why can't ruby order the array?</p>
  
  <p>Thanks in Advance</p>