title: Yii - findAll with order by
body: <p>How to findAll with specific column with order by desc ?</p>
  
  <p><strong>Code bellow worked and find all from the developer id</strong></p>
  
  <pre><code>$id = Yii::app()-&gt;user-&gt;getState('id');
  $models = Games::model()-&gt;findAll('developer_id='.$id);
  </code></pre>
  
  <p><strong>Code bellow worked and ordered</strong></p>
  
  <pre><code>$models = Games::model()-&gt;findAll(array('order'=&gt;'status'));
  </code></pre>
  
  <p><strong>When I mixed together then only worked for findAll developer_id='.$id doesn't order by</strong></p>
  
  <pre><code>$id = Yii::app()-&gt;user-&gt;getState('id');
  $models = Games::model()-&gt;findAll('developer_id='.$id,array('order'=&gt;'status'));
  </code></pre>
  
  <p>Any suggestion to do that ? Thanks </p>