diff --git a/sorting/ip-address.js b/sorting/ip-address.js index 48c1398..4022403 100644 --- a/sorting/ip-address.js +++ b/sorting/ip-address.js @@ -18,12 +18,18 @@ 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(":"), - x = "", - xa = ""; + var m, n; + var x, xa; + + if (!a) { + return 0 + } + + m = a.split("."); + n = a.split(":"); + x = ""; + xa = ""; if (m.length == 4) { // IPV4