mirror of
https://github.com/pi-hole/web.git
synced 2026-04-28 04:33:58 +01:00
Sort by first IP if multiple IPs are available for a given device.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -14,6 +14,12 @@ jQuery.extend(jQuery.fn.dataTableExt.oSort, {
|
||||
}
|
||||
|
||||
var i, item;
|
||||
// Use the first IP in case there is a list of IPs
|
||||
// for a given device
|
||||
if (Array.isArray(a)) {
|
||||
a = a[0];
|
||||
}
|
||||
|
||||
var m = a.split("."),
|
||||
n = a.split(":"),
|
||||
x = "",
|
||||
|
||||
Reference in New Issue
Block a user