Module:ET sort key: Difference between revisions

Fredg999 (talk | contribs)
Add missing "return p" at the end
Fredg999 (talk | contribs)
Bugfix
 
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:
function p._et_sort_key(tuning)
function p._et_sort_key(tuning)
local et = ET.parse(tuning)
local et = ET.parse(tuning)
local size = et.size
local size = tostring(et.size)
local sort_key = String.rep("#", size:count("%d"))
local sort_key = string.rep("#", size:len())
return sort_key
return sort_key
end
end


return p
return p