mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Make protocols dropdown order case insensitive
This commit is contained in:
parent
a5693acfea
commit
d89e66826b
2 changed files with 10 additions and 2 deletions
|
|
@ -552,6 +552,14 @@ function rev(a,b)
|
|||
return (a > b)
|
||||
end
|
||||
|
||||
function asc_insensitive(a,b)
|
||||
return (string.lower(a) < string.lower(b))
|
||||
end
|
||||
|
||||
function rev_insensitive(a,b)
|
||||
return (string.lower(a) > string.lower(b))
|
||||
end
|
||||
|
||||
--for _key, _value in pairsByKeys(vals, rev) do
|
||||
-- print(_key .. "=" .. _value .. "\n")
|
||||
--end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue