Module:Infobox chord: Difference between revisions

Bcmills (talk | contribs)
attempt to add sort tags to categories
Bcmills (talk | contribs)
mNo edit summary
Line 129: Line 129:
-- compute tag to add for category sort order: as many "#" as the number of digits in the first harmonic
-- compute tag to add for category sort order: as many "#" as the number of digits in the first harmonic
local sort_tag = ""
local sort_tag = ""
local first_num = page_name.match("^(%d+):")
local first_num = page_name:match("^(%d+):")
if first_num then
if first_num then
first_num = tonumber(first_num)
first_num = tonumber(first_num)