title: datatable sorting on string as number
body: <p>i have datatable and i want to sort in as numeric it contains value like 1st,2nd...., here is my code when i sort it it sorts values like 1st,10th,2nd so on how to sort it properly?</p>
  
  <pre><code>$('#example').DataTable( {
     //      "columnDefs": [
     //   { "visible": false, "targets": 4 }
     // ],
  "aaSorting": [[1,'asc']],
     "columnDefs": [ {
      "targets": [2,5,6],
      "orderable": false
    } ,
    {
      "targets": 0,
      "orderable": false
    },
    { "width": "5%", "targets": 0 },
    { "width": "8%", "targets": 1 }],
  
    initComplete: function () {
  
      this.api().columns().every( function () {
        var column = this;
        var select = $('&lt;select&gt;&lt;option value=""&gt;&lt;/option&gt;&lt;/select&gt;')
        .appendTo( $(column.footer()).empty() )
        .on( 'change', function () {
          var val = $.fn.dataTable.util.escapeRegex(
           $(this).val()
           );
  
          column
          .search( val ? '^'+val+'$' : '', true, false )
          .draw();
        } );
  
        column.data().unique().sort().each( function ( d, j ) {
          select.append( '&lt;option value="'+d+'"&gt;'+d+'&lt;/option&gt;' )
        } );
      } );
    }
  }); 
  </code></pre>