diff options
| author | dvs1 | 2025-01-15 15:27:23 +1000 |
|---|---|---|
| committer | dvs1 | 2025-01-15 15:27:23 +1000 |
| commit | 5102b6f08e078456c97633ffa9bbc3d6339738ad (patch) | |
| tree | 2e0a7500d14289d6d7e74a211cc569227df236ac | |
| parent | Sort the header links. (diff) | |
| download | notYetAnotherWiki-5102b6f08e078456c97633ffa9bbc3d6339738ad.zip notYetAnotherWiki-5102b6f08e078456c97633ffa9bbc3d6339738ad.tar.gz notYetAnotherWiki-5102b6f08e078456c97633ffa9bbc3d6339738ad.tar.bz2 notYetAnotherWiki-5102b6f08e078456c97633ffa9bbc3d6339738ad.tar.xz | |
Try that again.
Diffstat (limited to '')
| -rwxr-xr-x | notYetAnotherWiki.lua | 2 |
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 |
