Make diag_states_summary table sortable
Make diag_states_summary table sortable so users can chose the way they want to sort it.
Discussed at https://github.com/pfsense/pfsense/pull/4018
Updated by Jim Pingle over 2 years ago
Looks like this will require redesigning the page a bit. The sortable library does not handle rowspan/colspan as they are used by the current design, or the second header row with "Protocol Counts". I tried a couple different ways and it mangled things differently each way.
I did get close to getting an accurate IP address sort by having it do
data-value="" entries for the IP address, using ip2long32() for IPv4 addresses. IPv6 was mixed in no matter what I ran it through, but I did at least try uncompressing it first to see if that helped.