title: jQuery Datatable Sorting bug/error Chrome Specific need work around
body: <p>Here my code</p>
  
  <pre><code>jQuery.fn.dataTableExt.oSort['num-asc']  = function(a,b) {
      var x = a.replace( /&lt;.*?&gt;/g, "" );
      var y = b.replace( /&lt;.*?&gt;/g, "" );
      x = parseFloat( x );
      y = parseFloat( y );
      return ((x &lt; y) ? -1 : ((x &gt; y) ?  1 : 0));
  };
  
  jQuery.fn.dataTableExt.oSort['num-desc'] = function(a,b) {
      var x = a.replace( /&lt;.*?&gt;/g, "" );
      var y = b.replace( /&lt;.*?&gt;/g, "" );
      x = parseFloat( x );
      y = parseFloat( y );
      return ((x &lt; y) ?  1 : ((x &gt; y) ? -1 : 0));
  };
  
  $(document).ready(function() {
      $('#ledger').dataTable({
          bAutoWidth: false,
          bJQueryUI : true,
          bProcessing: true,
          bServerSide: false,
          sPaginationType: "full_numbers",
          bStateSave : false,
          bUseRendered: false,
          iDisplayLength: ${entriesValue},
          sDom: mw.superadmin.datatable.relatedListDom,
          aLengthMenu: mw.superadmin.datatable.relatedListLengthMenu,
          aaSorting: [[0,'asc']],
          aoColumns: [
              null,
              { "iDataSort": 2},
              { "bVisible": false, "sType": "num"},
              { "iDataSort": 4, "bSortable": true },
              { "bVisible": false, "sType": "num"}
          ]
      });
  </code></pre>
  
  <p>This table works 100% through and through without issue on IE, FF, Opera, and Safari to my knowlege however with Chrome it fails misserablly but only on 1 specific column of my sortable set. I can't figure it out, and need a little assistance.</p>
  
  <p>An example of what its doing on Chrome can be found in the image below.
  <img src="https://i.stack.imgur.com/Wi3NE.jpg" alt="enter image description here"></p>
  
  <p>Personally I feel its cause its got characters like ( , [ } ) etc in it.. However like I said other browsers not a problem, Chrome is the only one giving me an issue on this.</p>