added support for blank (no number)

found this to be an issue in my app. hope it helps.
pull/14/head
Bruno Pierri Galvao 12 years ago
parent 90fd600aba
commit 0e699842ac

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

Loading…
Cancel
Save