Changes

MyWikiBiz, Author Your Legacy — Tuesday September 09, 2025
Jump to navigationJump to search
409 bytes added ,  06:05, 16 July 2021
Pywikibot 6.4.0
local p = {}

function p.asc(frame)
items = splitLine( frame.args[1] );
table.sort( items );
return table.concat( items, "\n" );
end

function p.desc(frame)
items = splitLine( frame.args[1] );
table.sort( items, function (a, b) return a > b end );
return table.concat( items, "\n" );
end

function splitLine( text )
return mw.text.split( text, "\n", true );
end



return p

Navigation menu