Commit 07f573ce authored by Izaya's avatar Izaya

added sorting to the front page

parent 33651496
......@@ -8,7 +8,7 @@ local nftab= {}
local dpath="src/news"
local rpath="news"
local dirls = io.popen("ls "..cdir.."/"..dpath):read("*a")
local dirls = io.popen("ls "..cdir.."/"..dpath.." | sort -g"):read("*a")
local t = {}
local function helper(line) table.insert(t, line) return "" end
helper((dirls:gsub("(.-)\r?\n", helper)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment