Template talk:TypetableSort

Latest comment: 9 August by Nescientist in topic Sorting broken by latest edit

Sorting broken by latest edit

Hi editors. Sorry that I'm too out of practice wikicoding to try to fix this myself, so I need to draw your attention to an error created by Minibug's recent edit to this template.

Originally, the type pages were broken down into monotype, primary, and secondary types, with separate sortability on each type. So, for example, if you were on the Ground page and wanted to see every Pokemon that was also part Steel, you could see all the Ground/Steel types grouped together, and all the Steel/Ground types grouped together. This required looking at the tables separately, which was slightly inconvenient, but not a big deal.

Then Team Rocket Grunt overhauled and combined the tables, with sorting designed to keep all the Ground/Steel and Steel/Ground types together regardless of primary or secondary typing. This was fantastic for my needs, although I see on Talk:Ice (type) that others didn't like it, so I'll concede and not push the point. HOWEVER, in altering this to separate primary and secondary type sorting, Minibug has completely broken the ability to sort by the paired type at all. So if you take a look at the Ground page now and try sorting the type column, it puts all the primary Ground types in dex order instead of sorting them by their secondary type, and ditto for the secondary Ground types being in dex order instead of sorted by their primary type. The Ground/Steels are all mixed together scattered amongst everything else!

If you refuse to allow sorting same-combination-inverted-order type combos together, then at least please fix the sorting for the paired type. Thanks for your time and consideration. Pumpkinking0192 (talk) 20:24, 8 August 2026 (UTC)Reply

I agree.
What was your intention here, Minibug? I'm assuming it was to have it simply sort monotype->primary type->secondary type? (I'm noting there's unnecessary code for that, and/or even regardless of what the intention was, so I'm really wondering.)
I'd rather undo your edit (and probably restore the original intention). Nescientist (talk) 10:10, 9 August 2026 (UTC)Reply