Module:Two strings to alphabetically first string

Documentation for this module may be created at Module:Two strings to alphabetically first string/doc

Code

local p = {}

p.main = function ( frame )
	str1 = frame.args[1]
	str2 = frame.args[2]
	if str1 < str2 then
		return str1
	else
    	return str2
	end
end

return p