Sorting: Allow the brackets-negative to work with an empty string (i.e. it being 0)

Thanks @unclethehornet
pull/403/head
Allan Jardine 6 years ago
parent 1e3b8021ad
commit 86bb873fed

@ -25,6 +25,10 @@
}
);
$.fn.dataTable.ext.type.order['currency-pre'] = function ( data ) {
if ( data === '' ) {
return 0;
}
//Check if its in the proper format
if(data.match(/[\()]/g)){
if( data.match(/[\-]/g) !== true){

Loading…
Cancel
Save