Plugin Sort

Use this wiki plugin to sort lines of text alphabetically in ascending or descending order, reverse the current sorting, or shuffle them. Since Tiki versions 6.5, 7.3 and 8.0, the sorting is natural and case insensitive.

Parameters

Sort lines of text
Introduced in Tiki 1.
Go to the source code
Preferences required: wikiplugin_sort

Parameters Accepted Values Description Default Since
(body of plugin) Data to sort, one entry per line.
sort (blank)
asc
desc
reverse
shuffle
Set the sort order of lines of content (default is ascending) asc 1

Note that the plugin treats the lines that {SORT()} and {SORT} are on as the first and last line.

Examples

Example 1

This code:

Copy to clipboard
^{SORT(sort="asc")}Some messy lines that need to be sorted now we can thanks to Oliver{SORT}^


Would produce:

now we can

Some messy lines
thanks to Oliver

that need to be sorted

Example 2 (natural sorting and case insensitive)

This code:

Copy to clipboard
^{SORT()} IMG0.png IMG3.png img1.png img10.png img12.png img2.png {SORT}^


Would produce:

IMG0.png

img1.png
img2.png
IMG3.png
img10.png

img12.png