aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authordvs12025-01-17 17:44:20 +1000
committerdvs12025-01-17 17:44:20 +1000
commitae2685caf942b0b0fbcaf06d0207eee406d4e357 (patch)
treeb7f9a2ce049642b58a0d4bfe28e5dd9f98c529f1
parentMore TODO musings. (diff)
downloadnotYetAnotherWiki-ae2685caf942b0b0fbcaf06d0207eee406d4e357.zip
notYetAnotherWiki-ae2685caf942b0b0fbcaf06d0207eee406d4e357.tar.gz
notYetAnotherWiki-ae2685caf942b0b0fbcaf06d0207eee406d4e357.tar.bz2
notYetAnotherWiki-ae2685caf942b0b0fbcaf06d0207eee406d4e357.tar.xz
Maybe THIS will solve the sorting issue?
-rwxr-xr-xnotYetAnotherWiki.lua3
1 files changed, 1 insertions, 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
225 for i, f in pairs(Subs[path].subs) do 225 for i, f in pairs(Subs[path].subs) do
226 table.insert(subs, f) 226 table.insert(subs, f)
227 end 227 end
228 table.sort(subs, function(a, b) return (string.lower(a) <= string.lower(b)) end) 228 table.sort(subs, function(a, b) return (string.lower(a) < string.lower(b)) end)
229 for i, f in ipairs(subs) do 229 for i, f in ipairs(subs) do
230 local pth = path 230 local pth = path
231 if '' ~= path then pth = path .. '/' end 231 if '' ~= path then pth = path .. '/' end
@@ -237,7 +237,6 @@ for name, file in pairs(Files) do
237 metadata.menu = '' 237 metadata.menu = ''
238 if nil == metadata.title then metadata.title = metadata.pagetitle end 238 if nil == metadata.title then metadata.title = metadata.pagetitle end
239 if nil == metadata.title then metadata.title = bit end 239 if nil == metadata.title then metadata.title = bit end
240 if nil ~= Subs[path].files then table.sort(Subs[path].files, function(a, b) return (string.lower(a) <= string.lower(b)) end) end
241 for i, f in ipairs(Subs[path].files) do 240 for i, f in ipairs(Subs[path].files) do
242 local title, url = nil, nil 241 local title, url = nil, nil
243 if '' == path then 242 if '' == path then