title: JQGrid Sorting - how to trigger onSortCol event
body: <p>I am trying to get the <code>onSortCol</code> event get fired when I press a column header. Currently, when I click a column header, I can see a request going to the server but I want the <code>onSortCol</code> to be fired before this happens. I have pasted below the code I am using.</p>
  
  <p>Am I missing anything? How do i get <code>onSortCol</code> to work?</p>
  
  <pre><code>jQuery("#list").jqGrid('navGrid', "#pager", { edit: false, add: false, del: false },
  {onSortCol:function (index, columnIndex, sortOrder)
   {
      alert(index);
      return 'stop';
   }
  });
  </code></pre>