local p = {}
local sortAsc = require("Module:ViSort").sortAsc
function p.asc(frame)
local extracted = {}
for token in mw.ustring.gmatch(frame.args[1], "%[%[([^%|%]]+)") do
table.insert(extracted, token)
end
table.sort(extracted, sortAsc);
return "*" .. table.concat(extracted, "\n*");
end
return p