From 95d5fe1626d6998f31b3fca0754b97c9a913e8f5 Mon Sep 17 00:00:00 2001 From: Ricardo Constantino Date: Thu, 4 May 2017 14:23:39 +0100 Subject: TOOLS/lua/autoload.lua: actually sort files case insensitive Regression since 8996f79edbf. Closes #4398 --- TOOLS/lua/autoload.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TOOLS/lua/autoload.lua b/TOOLS/lua/autoload.lua index 5f8faa3ad2..caf9d786a0 100644 --- a/TOOLS/lua/autoload.lua +++ b/TOOLS/lua/autoload.lua @@ -82,7 +82,8 @@ function find_and_add_entries() local len = string.len(a) - string.len(b) if len ~= 0 then -- case for ordering filename ending with such as X.Y.Z local ext = string.len(get_extension(a)) + 1 - return string.sub(a, 1, -ext) < string.sub(b, 1, -ext) + a = string.sub(a, 1, -ext) + b = string.sub(b, 1, -ext) end return string.lower(a) < string.lower(b) end) -- cgit v1.2.3