Make protocols dropdown order case insensitive

This commit is contained in:
emanuele-f 2017-05-25 11:47:00 +02:00
parent a5693acfea
commit d89e66826b
2 changed files with 10 additions and 2 deletions

View file

@ -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