Handle blank values

pull/114/head
benrwb 10 years ago
parent e9da22a1f3
commit 6ccf73dbc5

@ -20,6 +20,7 @@
jQuery.extend( jQuery.fn.dataTableExt.oSort, { jQuery.extend( jQuery.fn.dataTableExt.oSort, {
"date-uk-pre": function ( a ) { "date-uk-pre": function ( a ) {
if (a == null || a == "") return 1;
var ukDatea = a.split('/'); var ukDatea = a.split('/');
return (ukDatea[2] + ukDatea[1] + ukDatea[0]) * 1; return (ukDatea[2] + ukDatea[1] + ukDatea[0]) * 1;
}, },

Loading…
Cancel
Save