[Show/Hide Right Column]

Sort lines of text
Print
Tags: plugin

Plugin Sort

This Wiki Plugin allows you to sort lines of text alphabetically in ascending or descending order, reverse the current sorting, or shuffle them.

Usage

To use this plugin in a wiki page, use the syntax:

{SORT(sort=>asc|desc|reverse|shuffle)}data{SORT} - one data per line

Note that the plugin treats the lines that {SORT()} and {SORT} are on as the first and last line. This may be changed in the future.

Example

This code,

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

Would produce:

Some messy lines

now we can thanks to Oliver that need to be sorted

Todo

parameter for sorting case insensitive

Related pages

Contributors to this page: lindon2331 points  , Xavi36278 points  and system .
Page last modified on Saturday 13 March, 2010 05:35:00 UTC by lindon2331 points .

Find by Page Name

Exact match

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki documentation and should correspond to development keywords (bug reports and feature requests):