Módulo:Sort
Este módulo não apresenta nenhuma documentação. Por favor, documente-o caso o saiba usar ou tenha conhecimentos para tal. |
p={}
function p.f(frame)
t={}
delim = frame.args[1]
for n,v in frame:argumentPairs() do table.insert (t,v) end
t[1]=''
table.sort (t)
for i,v in ipairs(t) do
if i>2 then r=r..delim..v elseif i==2 then r=v end
end
return r
end
function p.g(frame)
t={}
for n,v in frame:argumentPairs() do table.insert (t,v) end
table.sort (t)
for i,v in ipairs(t) do
if i>1 then r=r..'\n'..v elseif i==1 then r=v end
end
return r
end
return p