Module:Sort
Jump to navigation
Jump to search
Module documentation[create]
| You might want to create a documentation page for this Scribunto module. Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this module. |
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
return p

