Return 0 instead of 1, added braces

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

@ -20,7 +20,9 @@
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; if (a == null || a == "") {
return 0;
}
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