Merge pull request #114 from benrwb/patch-1

Handle blank values
pull/116/merge
Allan Jardine 10 years ago
commit 32c6ea6968

@ -20,6 +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 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