Warning: Undefined variable $filepath in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_tikidocfromcode.php on line 146
Sort lines of text | Documentation for Tiki Wiki CMS Groupware
Loading...
 
Skip to main content
Sort lines of text

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

Tiki Doc From Code error: sort not found
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


Created by system. Last Modification: Wednesday 31 July, 2019 07:40:11 GMT-0000 by Yves Kipondo.
Show PHP error messages