Module:languages/bySortkeyModule

Hello, you have come here looking for the meaning of the word Module:languages/bySortkeyModule. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:languages/bySortkeyModule, but we will also tell you about its etymology, its characteristics and you will know how to say Module:languages/bySortkeyModule in singular and plural. Everything you need to know about the word Module:languages/bySortkeyModule you have here. The definition of the word Module:languages/bySortkeyModule will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:languages/bySortkeyModule, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


return function(sortkeyModule)
	local langs = {}
	
	for code, data in pairs(require("Module:languages/data/all")) do
		if data.sort_key == sortkeyModule then
			langs = data
		elseif type(data.sort_key) == "table" then
			for script, sortkey_data in pairs(data.sort_key) do
				if sortkey_data == sortkeyModule then
					langs = data
				end
			end
		end
	end
	
	local result = {}
	local i = 0
	for code, data in pairs(langs) do
		i = i + 1
		result = require("Module:languages").makeObject(code, data)
	end
	
	return result
end