Merge pull request #15 from brunopgalvao/patch-2

support for blank space
pull/16/head
Allan Jardine 12 years ago
commit bc8bd1cbc0

@ -9,7 +9,7 @@
jQuery.extend( jQuery.fn.dataTableExt.oSort, { jQuery.extend( jQuery.fn.dataTableExt.oSort, {
"formatted-num-pre": function ( a ) { "formatted-num-pre": function ( a ) {
a = (a==="-") ? 0 : a.replace( /[^\d\-\.]/g, "" ); a = (a === "-" || a === "") ? 0 : a.replace( /[^\d\-\.]/g, "" );
return parseFloat( a ); return parseFloat( a );
}, },

Loading…
Cancel
Save