title: Yii CGridView Model Set Default Sorting Order
body: <p>My Yii CGridView Sorting is not working this way when</p>
  
  <pre><code>public function search() {
     $criteria = new CDbCriteria;
     $criteria-&gt;order = "member_id DESC";
  </code></pre>
  
  <p>When I click header menu in <code>CGridView</code> it is not working but when I remove </p>
  
  <pre><code>   $criteria-&gt;order = "member_id DESC";`
  </code></pre>
  
  <p>sorting is working fine. I want to show records by default <code>order by member_id desc</code>.</p>