diff options
author | wm4 <wm4@nowhere> | 2015-04-18 20:33:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-18 20:33:35 +0200 |
commit | f51952441eb62744afeee60a553b70c91eaeef34 (patch) | |
tree | 9afd7d5ccfa439392f798cad6b3b9b443d2bff28 /TOOLS | |
parent | d8dd4b6c39ad882c1c55655711eae415bc5f1191 (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.lua | 4 |
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 |