From mediawiki.org
This page is a translated version of the page Extension:InterwikiSorting and the translation is 14% complete.
MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
Release status: stable
Implementation User interface
Author(s) Wikimedia Germany (WMDE)
Latest version continuous updates
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki 1.27+
PHP 5.5+
Database changes No
Composer mediawiki/interwikisorting
License GNU General Public License 2.0 or later

  • $wgInterwikiSortingSort
  • $wgInterwikiSortingSortPrepend
  • $wgInterwikiSortingInterwikiSortOrders
Quarterly downloads 10 (Ranked 155th)
Public wikis using 924 (Ranked 277th)
Translate the InterwikiSorting extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The InterwikiSorting extension allows for sorting of interwiki links.

The code was originally created in 2012 as part of the Wikibase Client extension, and has been factored out.

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


The extension can be retrieved directly from Git [?]:

  • Browse code
  • Some extensions have tags for stable releases.
  • Each branch is associated with a past MediaWiki release. There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).

Extract the snapshot and place it in the extensions/InterwikiSorting/ directory of your MediaWiki installation.

If you are familiar with Git and have shell access to your server, you can also obtain the extension as follows:

cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/InterwikiSorting.git


  • Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens InterwikiSorting im Ordner extensions/ ablegen.
  • Folgenden Code am Ende Ihrer LocalSettings.php hinzufügen:
    wfLoadExtension( 'InterwikiSorting' );
  • Configure as required
  • Yes Done – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.


The default sort order to use. 'code' is built in and orders alphabetically by interwiki code.
Example sort orders are currently stored in WMF configuration and can be seen at Phabricator
These can be seen used in noc.wikimedia.org under wgInterwikiSortingSort
Codes that should appear at the start of the list of interwiki links.
Definition of sort orders. Each sort order key should be the sort order name, for example 'alphabetical'. Each key should have a value of an array of interwiki codes in the order to be sorted.