local export = {}

local function sort_th(item1, item2)
	item1 = mw.ustring.gsub(item1, "([เแโใไ])([ก-ฮ])", "%2%1")
	item2 = mw.ustring.gsub(item2, "([เแโใไ])([ก-ฮ])", "%2%1")
	return item1 < item2
end

function export.show(frame)
	local dump = require("Module:debug").highlight_dump
	local all_data = require("Module:families/by name")
	return dump(all_data, "", sort_th)
end

return export