Category talk:Lumatone mappings: Difference between revisions
Any way to fix the sort order? |
→Sorting order: Re |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
Any way to fix the sort order so that the EDO numbers sort properly? It's kind of annoying when 9edo is after 90edo through 99edo, etc. [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 09:12, 6 August 2025 (UTC) | Any way to fix the sort order so that the EDO numbers sort properly? It's kind of annoying when 9edo is after 90edo through 99edo, etc. [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 09:12, 6 August 2025 (UTC) | ||
: Done. --[[User:Fredg999|Fredg999]] ([[User talk:Fredg999|talk]]) 15:52, 6 August 2025 (UTC) | |||
:: Thanks. For the future, how did you fix this? I don't see any difference in the page source. [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 21:07, 6 August 2025 (UTC) | |||
::: I created [[Module:ET sort key]]. I used it to edit [[Template:Navbox Lumatone]], which adds the corresponding categories to the page in addition to displaying the navbox itself (it's just more convenient that way). This module will count the number of digits in the EDO's size and output the needed sort key to make the numerical sorting work. It should be usable in other templates as well. Some other templates already had a similar feature built into their own modules, but it wasn't really possible to re-use that code, so that's why I made a separate module instead. --[[User:Fredg999|Fredg999]] ([[User talk:Fredg999|talk]]) 00:57, 7 August 2025 (UTC) |