From 768b29279b844fc52b3364fecca2e95a56fe08ef Mon Sep 17 00:00:00 2001 From: miodragbogdanovic Date: Thu, 8 Mar 2018 10:34:11 +0100 Subject: [PATCH] Update IP field is empty bug @Datatables, you are right, it should be better to use !a, then empty string case is covered as well. And yes, I'm happy for this to be included under MIT licence. --- sorting/ip-address.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sorting/ip-address.js b/sorting/ip-address.js index c5d0716..48c1398 100644 --- a/sorting/ip-address.js +++ b/sorting/ip-address.js @@ -18,7 +18,7 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, { "ip-address-pre": function ( a ) { - if (a == null) { return 0 } + if (!a) { return 0 } var i, item; var m = a.split("."), n = a.split(":"),