Modul:xal-sortkey
- Modul ini kekurangan sublaman pendokumenan. Sila mencipta laman pendokumenan berkaitan.
- Pautan berguna: senarai sublaman • pautan • transklusi • kes ujian • kotak pasir
local export = {}
local u = mw.ustring.char
local a = u(0xF000)
local oneChar = {
["ә"] = "а" .. a, ["һ"] = "г" .. a, ["ё"] = "е" .. a, ["җ"] = "ж" .. a, ["ң"] = "н" .. a, ["ө"] = "о" .. a, ["ү"] = "у" .. a
}
function export.makeSortKey(text, lang, sc)
return mw.ustring.upper(mw.ustring.gsub(mw.ustring.lower(text), ".", oneChar))
end
return export