You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then add this after "var table = $("table[id^='Stupid-Table-Plugin'][class^='table-striped']").stupidtable({"
"date": function(a,b) {
// Get these into date objects for comparison.
...
},
"ip": function(a,b) {
aIP = ip_address_pre(a);
bIP = ip_address_pre(b);
return aIP - bIP;
}
});
testing result and good luck!
The text was updated successfully, but these errors were encountered:
Here has very useful code for reference: https://github.com/DataTables/Plugins/blob/master/sorting/ip-address.js , copy them into "$(function(){ var ip_address_pre = function(a) { ...return x;},"
then add this after "var table = $("table[id^='Stupid-Table-Plugin'][class^='table-striped']").stupidtable({"
"date": function(a,b) {
// Get these into date objects for comparison.
...
},
"ip": function(a,b) {
aIP = ip_address_pre(a);
bIP = ip_address_pre(b);
return aIP - bIP;
}
});
testing result and good luck!
The text was updated successfully, but these errors were encountered: