Module:Sandbox/MSGJ

Revision as of 16:58, 23 February 2022 by imported>MSGJ
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Sandbox/MSGJ/doc

local p = {};

function p.main(frame)
	local table1={{"a","1"},{"b","2"},{"c","3"},{"d","5"},{"e","4"}}
	table.sort(table1,function (a,b) return a[2]<b[2] end)
	local j=table1[2]
	return j[1]
end

return p