Extension:Sort



The Sort extension allows simplified creation of sorted lists through the use of a parser hook. It was written by Rob Church.

Installation

 * 1) Obtain the latest version of the extension from Subversion and place all files in the extensions directory
 * 2) Add the line require_once( 'extensions/Sort.php' ); to your LocalSettings.php file
 * 3) Access Special:Version on your wiki and search for the corresponding entry to verify installation was successful

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



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 markup can be used.

Order
The following are valid order values


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

Class
The following are valid class values


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