Module:Talu-sortkey

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

This module needs documentation.
Please document this module by describing its purpose and usage on the documentation page.

local export = {}

local monographs = {
	"] = "",  = "ᦶᦜ",  = "ᦶᦜᧁ",  = "᧑"
}

function export.makeSortKey(text, lang, sc)
	for from, to in pairs(monographs) do
		text = mw.ustring.gsub(text, from, to)
	end
	
	text = mw.ustring.gsub(text, "()()", "%2%1")
	
	return text
end

return export