From MediaWiki.org
Jump to: navigation, search
It was reported that this extension does not work properly in MW 1.19+
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg

Release status:Extension status unmaintained

ImplementationTemplate:Extension#type Tag
DescriptionTemplate:Extension#description Simplifies creating and maintaining sorted lists using a <sort> tag
Author(s)Template:Extension#username Rob Church (Robchurchtalk)
Latest versionTemplate:Extension#version 1.1 (2007-07-23)
MediaWikiTemplate:Extension#mediawiki 1.7+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GPL v2
Download Template:WikimediaDownload/svn

Translate the Sort extension if it is available at translatewiki.net

Check usage and version matrix.


Open tasks · Report a bug

The Sort extension introduces a <sort> tag to MediaWiki markup which simplifies the creation and maintenance of simple sorted lists.


  1. Check out all extension files from Subversion and place them in a Sort subdirectory within your MediaWiki extensions directory
  2. Add the line require_once( "$IP/extensions/Sort/Sort.php" ); to your LocalSettings.php file

Installation can be verified through the Special:Version page on the wiki.


Sort adds a new tag, <sort>, to the MediaWiki markup, which can be inserted while editing. The syntax of this tag is

<sort order="[order]" class="[class]">
List item one
List item two

The order and class attributes are optional, and are used to customise the sort direction and list type generated. By default, Sort will generate an alphabetically sorted unordered list. Each item in the list should go on a new line.

Wiki links can be used in list items, and existing list tokens will be trimmed from the start of the line.


The following are valid order values

  • asc - ascending sort (default)
  • desc - descending sort


The following are valid class values

  • ul - unordered [bulleted] list (default)
  • ol - ordered [numbered] list

See also[edit]