Extension:InterwikiSorting

The InterwikiSorting extension allows sorting of interwiki links.

The code was originally created in 2012 as part of the Wikibase Client extension (see [//phabricator.wikimedia.org/diffusion/EWBA/browse/master/client/includes/InterwikiSorter.php InterwikiSorter] as well as [//phabricator.wikimedia.org/diffusion/EWBA/browse/master/client/includes/Hooks/InterwikiSortingHookHandlers.php InterwikiSortingHookHandlers] for the latest revisions), and has been factored out.

Within the WMF this extension will be used alongside the Cognate extension and Wikibase.

Example sort orders are currently stored in Wikibase and can be seen at https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/5c074be09d8cc6d4ae70c94c916beecdcc994b9f/client/config/WikibaseClient.default.php#L105

These can be seen used in https://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php under wmgWikibaseClientSettings