Documentation for this module may be created at Module:Sort/doc
localp={}functionp.parse(frame)localinput=frame.args[1]or""localitems={}foriteminstring.gmatch(input,"([^,]+)")dotable.insert(items,item:match("^%s*(.-)%s*$"))-- Trim whitespaceendtable.sort(items)returnframe:preprocess(table.concat(items,", "))endreturnp