From 345ef8e62f95b2aa6ca4d1274ce296ace6b7b6d5 Mon Sep 17 00:00:00 2001 From: benrwb Date: Thu, 23 Oct 2014 20:45:53 +0100 Subject: [PATCH] Return 0 instead of 1, added braces --- sorting/date-uk.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sorting/date-uk.js b/sorting/date-uk.js index 465ca89..903f988 100644 --- a/sorting/date-uk.js +++ b/sorting/date-uk.js @@ -20,7 +20,9 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, { "date-uk-pre": function ( a ) { - if (a == null || a == "") return 1; + if (a == null || a == "") { + return 0; + } var ukDatea = a.split('/'); return (ukDatea[2] + ukDatea[1] + ukDatea[0]) * 1; },