Extension:CategorySortHeaders

What can this extension do?
Extension to allow specifying custom multi-character 'first-character' sorting headers to list pages under in categories, using syntax like or even just .

Usage
If you want a category to use a custom header, do (or . If you want to use the default first letter headers, just use categories as normal.

Installation
To install this extension, add the following to LocalSettings.php:
 * Run either update.php or updateCollation.php from the command line (Note, running the web installer in upgrade mode does not work due to 17335)

Configuration
This extension has a single configuration option -. It defaults to true, which causes a sortkey of  to be treated like. If it is set to false, it will sort  above. (In both cases, if there are two exactly same sort keys, the pagename will be used as a tie breaker). After changing this option you should run

On MediaWiki 1.17 and 1.18
This extension needs 91436 to work. Basically on MediaWiki 1.17 and 1.18 you just need to add the following to includes/Collation.php (replace the function  with the following): (Or alternatively just apply the changes in 91436)