title: How to enable sorting only for one column in JQUERY Datatable
body: <p>Im trying to enable sorting based on one column only in a datatable. but its not working. This is the way I tried</p>
  
  <pre><code>var myTable = $("#tbl_main").dataTable({
      "dom": "&lt;'tableinfobar'i&gt;&lt;'tablesearchbox'f&gt;&lt;'tablestarfilter'&gt;&lt;'tablebody't&gt;S&lt;'tablelength'l&gt;&lt;'tablepaging'p&gt;",
      "ordering": false,
      "columnDefs": [{"targets": [0, 6],"searchable": false}, {"targets":2, "type":"html-num","orderable":true}],
      "lengthMenu": [
          [10, 20, 50, 100, 500, -1],
          [10, 20, 50, 100, 500, "All"]
      ]
  }).show();
  </code></pre>
  
  <p>Here I need to enable sorting only for second column only and tried that in <strong>columnDefs</strong></p>