From 3078403114974db7a722d10d9dcfc1692da605fe Mon Sep 17 00:00:00 2001 From: dvs1 Date: Fri, 17 Jan 2025 16:00:00 +1000 Subject: Sorting still fails sometimes. Lets see if hat happens elsewhere. --- notYetAnotherWiki.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index 19f4fb0..f78e986 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua @@ -237,7 +237,7 @@ 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 + 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