diff --git a/sorting/ip-address.js b/sorting/ip-address.js index 28ff323..48c1398 100644 --- a/sorting/ip-address.js +++ b/sorting/ip-address.js @@ -18,6 +18,7 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, { "ip-address-pre": function ( a ) { + if (!a) { return 0 } var i, item; var m = a.split("."), n = a.split(":"), @@ -100,4 +101,4 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, { "ip-address-desc": function ( a, b ) { return ((a < b) ? 1 : ((a > b) ? -1 : 0)); } -}); \ No newline at end of file +});