We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have been trying to make a function for sorting ip adresses as tablesort is sorting them alphabetically. I used following sort function:
$('thead th.IP Address').data('myIpArray') myIpArray='myIpArray' myIpArray.sort(function(a,b){ // sort IP address. aa = getIP(a).split("."); bb = getIP(b).split(".");
for (var i=0, n=Math.max(aa.length, bb.length); i<n; i++) { if (aa[i] !== bb[i]) return aa[i] - bb[i]; } return 0;
});
The function still does not sort ip addresses. Anyone got an idea how to make sort work?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have been trying to make a function for sorting ip adresses as tablesort is sorting them alphabetically. I used following sort function:
$('thead th.IP Address').data('myIpArray')
myIpArray='myIpArray'
myIpArray.sort(function(a,b){ // sort IP address.
aa = getIP(a).split(".");
bb = getIP(b).split(".");
});
The function still does not sort ip addresses. Anyone got an idea how to make sort work?
The text was updated successfully, but these errors were encountered: