From ae2685caf942b0b0fbcaf06d0207eee406d4e357 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Fri, 17 Jan 2025 17:44:20 +1000 Subject: Maybe THIS will solve the sorting issue? --- notYetAnotherWiki.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index 576ffa3..3a95674 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua @@ -225,7 +225,7 @@ for name, file in pairs(Files) do for i, f in pairs(Subs[path].subs) do table.insert(subs, f) end - table.sort(subs, function(a, b) return (string.lower(a) <= string.lower(b)) end) + table.sort(subs, function(a, b) return (string.lower(a) < string.lower(b)) end) for i, f in ipairs(subs) do local pth = path if '' ~= path then pth = path .. '/' end @@ -237,7 +237,6 @@ for name, file in pairs(Files) do metadata.menu = '' if nil == metadata.title then metadata.title = metadata.pagetitle end if nil == metadata.title then metadata.title = bit end - if nil ~= Subs[path].files then table.sort(Subs[path].files, function(a, b) return (string.lower(a) <= string.lower(b)) end) end for i, f in ipairs(Subs[path].files) do local title, url = nil, nil if '' == path then -- cgit v1.1