NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
SLK-Purdue
Mar 22, 2020Luminary
Attached Devices Sorted by IP Number
I have a good number of devices on my home network. I manage then with static DHCP reservations and I wanted to be able to get an Attached Device display in the web ui sorted by IP number. The at...
SLK-Purdue
Mar 23, 2020Luminary
Got one report of problems that I think may be due to line wrap in the PDF. The important code should look like:
function ip2int(ip) {
return ip.split('.').reduce(function(ipInt, octet) { return (ipInt<<8) + parseInt(octet, 10)}, 0) >>> 0;
}
Array.prototype.keySort = function(key, desc){
this.sort(function(a, b) {
var result = desc ? (ip2int(a[key]) < ip2int(b[key])) : (ip2int(a[key]) > ip2int(b[key]));
return result ? 1 : -1;
});
return this;
}