aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authordvs12025-01-17 16:00:00 +1000
committerdvs12025-01-17 16:00:00 +1000
commit3078403114974db7a722d10d9dcfc1692da605fe (patch)
treef471fa0adbc4164531a35908cfa99a40c55113d0
parentMaybe Lua sorting doesn't suck after all? (diff)
downloadnotYetAnotherWiki-3078403114974db7a722d10d9dcfc1692da605fe.zip
notYetAnotherWiki-3078403114974db7a722d10d9dcfc1692da605fe.tar.gz
notYetAnotherWiki-3078403114974db7a722d10d9dcfc1692da605fe.tar.bz2
notYetAnotherWiki-3078403114974db7a722d10d9dcfc1692da605fe.tar.xz
Sorting still fails sometimes. Lets see if hat happens elsewhere.
-rwxr-xr-xnotYetAnotherWiki.lua2
1 files changed, 1 insertions, 1 deletions
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
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 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 241 for i, f in ipairs(Subs[path].files) do
242 local title, url = nil, nil 242 local title, url = nil, nil
243 if '' == path then 243 if '' == path then