TOOLS: autoload.lua: sort files case insensitive
Suggested by a user. The suggested code which was added her comes from PIL.
This commit is contained in:
1 parent
d8dd4b6c39
commit
f51952441e
1 file changed
+3
-1
@@ -28,7 +28,9 @@ function find_and_add_entries()
|
||||
if files == nil then
|
||||
return
|
||||
end
|
||||
table.sort(files)
|
||||
table.sort(files, function (a, b)
|
||||
return string.lower(a) < string.lower(b)
|
||||
end)
|
||||
if dir == "." then
|
||||
dir = ""
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user