Module:Infobox chord: Difference between revisions
attempt to add sort tags to categories |
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 | 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) | ||