Extension:SimpleSort

The SimpleSort extension allows you to sort a list of items, contained in the same string.

Usage
Once installed you can use the  template invocation. It takes 1 or 2 arguments, depending on whether you are happy with the defaults or if you want to customize the sorting. The 1-argument form assumes a comma-separated list of items (ignoring and discarding whitespace around the commas), and sorts them in ascending order, case-insensitive, following php's "natural" sorting order:
 * This produces output
 * This produces output

Optionally, you may specify as a first argument one or more options, each separated by whitespace. Available options are: For example,
 * Use descending rather than ascending order.
 * Use regular alphabetic ordering.
 * Use regular numeric ordering.
 * Use a case-sensitive comparison.
 * Use  as an item separator to recognize items.  Whitespace around   will still be ignored and discarded.
 * Use  as an item separator in the sorted output.  The default is to use the same string as