aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authordvs12025-01-15 15:27:23 +1000
committerdvs12025-01-15 15:27:23 +1000
commit5102b6f08e078456c97633ffa9bbc3d6339738ad (patch)
tree2e0a7500d14289d6d7e74a211cc569227df236ac
parentSort the header links. (diff)
downloadnotYetAnotherWiki-5102b6f08e078456c97633ffa9bbc3d6339738ad.zip
notYetAnotherWiki-5102b6f08e078456c97633ffa9bbc3d6339738ad.tar.gz
notYetAnotherWiki-5102b6f08e078456c97633ffa9bbc3d6339738ad.tar.bz2
notYetAnotherWiki-5102b6f08e078456c97633ffa9bbc3d6339738ad.tar.xz
Try that again.
-rwxr-xr-xnotYetAnotherWiki.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua
index 55953cd..01d14f1 100755
--- a/notYetAnotherWiki.lua
+++ b/notYetAnotherWiki.lua
@@ -227,7 +227,7 @@ for name, file in pairs(Files) do
227 for i, f in pairs(Subs[path].subs) do 227 for i, f in pairs(Subs[path].subs) do
228 table.insert(subs, f) 228 table.insert(subs, f)
229 end 229 end
230 table.sort(subs) 230 table.sort(subs, function(a, b) return (a <= b) end)
231 for i, f in ipairs(subs) do 231 for i, f in ipairs(subs) do
232 local pth = path 232 local pth = path
233 if '' ~= path then pth = path .. '/' end 233 if '' ~= path then pth = path .. '/' end