title: Ext js 5.0.1 column custom sorting
body: <p>I am new to extjs framework and looking for a way to add a custom sorting function to a column in a panel. I went through some of the post, and it seems that this functionality has been changed a few times over time.</p>
  
  <p>In 5.0.1 documentation I found <a href="https://docs.sencha.com/extjs/5.1.0/api/Ext.data.field.Field.html#cfg-sortType" rel="nofollow noreferrer">sortType</a> configuration that can be used to convert the data to a comparable value.</p>
  
  <p>But in my case, converting all the data to a value and then sorting could be a time consuming process and I was looking to use a function like the one used in <code>doSort</code> configuration earlier <a href="https://fiddle.sencha.com/#fiddle/2u7&amp;view/editor" rel="nofollow noreferrer">similar to this example</a>; by basically configuring a function like this:</p>
  
  <pre><code>function customSorter(state){
      var ds = this.up('grid').getStore();
      var field = this.getSortParam();
      ds.sort({
          property: field,
          direction: state,
          sorterFn: function(v1,v2){
               //some custom logic
          }
      });
  }
  </code></pre>
  
  <p><strong>EDIT 1:</strong> <em>I am looking to use this function for only one column, the other columns are standard data types and sorting works fine by default for those.</em></p>
  
  <p>Any ideas how to do this in 5.0.1?</p>
  
  <p>Thanks in advance..</p>