Module:Two strings to alphabetically first string

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Lua
CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules

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