jayvdb added projects: pywikibot-compat, testme, Pywikibot-tests. jayvdb added a comment.
compat already uses 'category.aslink(noInterwiki=True)' , and that method adds the sorting label if self.sortKey has a value.
So I think this problem does not exist in compat, but we'd need to investigate whether these Category objects are instantiated with a sortKey. Needs tests, for core and compat!
TASK DETAIL https://phabricator.wikimedia.org/T68921
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: Ricordisamoa, jayvdb Cc: pywikipedia-bugs, Ricordisamoa, jayvdb, Xqt