aboutsummaryrefslogtreecommitdiffhomepage
path: root/TOOLS
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-04-18 20:33:35 +0200
committerGravatar wm4 <wm4@nowhere>2015-04-18 20:33:35 +0200
commitf51952441eb62744afeee60a553b70c91eaeef34 (patch)
tree9afd7d5ccfa439392f798cad6b3b9b443d2bff28 /TOOLS
parentd8dd4b6c39ad882c1c55655711eae415bc5f1191 (diff)
TOOLS: autoload.lua: sort files case insensitive
Suggested by a user. The suggested code which was added her comes from PIL.
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/lua/autoload.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/TOOLS/lua/autoload.lua b/TOOLS/lua/autoload.lua
index 433b2138d7..bbc33def63 100644
--- a/TOOLS/lua/autoload.lua
+++ b/TOOLS/lua/autoload.lua
@@ -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