diff --git a/scripts/pi-hole/js/ip-address-sorting.js b/scripts/pi-hole/js/ip-address-sorting.js index 8bbaa152..3b3f5e6f 100644 --- a/scripts/pi-hole/js/ip-address-sorting.js +++ b/scripts/pi-hole/js/ip-address-sorting.js @@ -5,9 +5,9 @@ * This file is copyright under the latest version of the EUPL. * Please see LICENSE file for your rights under this license. */ -// This code has been taken from +// This code has been adapted from // https://datatables.net/plug-ins/sorting/ip-address -jQuery.extend(jQuery.fn.dataTableExt.oSort, { +$.extend($.fn.dataTableExt.oSort, { "ip-address-pre": function (a) { if (!a) { return 0;