Fix sorting being case sensitive

This commit is contained in:
Tomas Sardyha
2020-04-21 12:29:19 +02:00
parent e4a4795ed5
commit 52bf192fe3

View File

@@ -386,6 +386,8 @@ local word_order_comparator = (function()
end
return function (a, b)
a = a:lower()
b = b:lower()
for i = 1, math.max(#a, #b) do
local ai = a:sub(i, i)
local bi = b:sub(i, i)