Module:Date table sorting

local p = {}

function p.dts(frame) -- retval = ' ' year=tonumber(frame.args[1]) month=tonumber(frame.args[2]) day=tonumber(frame.args[3]) retval = retval .. year if (month<10) then retval = retval.. "0"   end retval = retval .. month if (day<10) then retval = retval.. "0"   end retval = retval .. month return retval -- --&#32;!   -- retval = retval .. "   end

return p