values required default (empty string)The delimiter-separated list of values to sort. With no delimiter set, parts are split on a hyphen. Empty or whitespace-only parts are kept as values.
type optional default (empty string)Sort order. Empty or any unrecognized value sorts numerically ascending (the default). The recognized orders are: string (text, ascending, so 12 before 3), rnumeric (numeric, descending), rstring (text, descending), locale (text by the server locale, ascending), rlocale (locale, descending).
unique optional default (empty string)Set to the literal 1 to remove duplicate values after sorting, keeping the first occurrence of each. Any other value leaves duplicates in place.
delimiter optional default - (a single hyphen)Separator used both to split the input list and to join the sorted result. One delimiter governs input and output together.
limit optional default (empty string)Keep only the first N values after sorting. Applied only when it is a non-negative whole number and the list holds more than N values; otherwise the whole list is returned.
add optional default (empty string)When limit truncates the list, this extra value is appended as the final element, for example an ellipsis or a more link. Ignored when limit does not truncate.
{sort:5-3-12-1}
{sort:10-2-33-4:number}
{sort:5-3-12-1:string}
{sort:5-3-12-1:rnumeric}
{sort:cherry-apple-banana:string}
{sort:apple-banana-cherry:rstring}
{sort:3-1-2-1-3::1}
{sort:30,5,200:::,}
{sort:5-3-12-1-9-7:::-:3}
{sort:5-3-12-1-9-7:::-:3:...}