Module:Sandbox

-- This is a sandbox for testing lua scripts. -- See Extension:Scribunto for more information.

local p={} function p.f(frame) local t={} local 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 r=r..'\n\n' for i,v in ipairs(t) do        r=r..delim..v    end return r end return p