natural-sort

{natural-sort}

Plugin: Reporting Plugin, from version 1.3

Sorts based on the natural order of the specified key chain.

Description

This is a general sorting macro which can replace some of the other sorting macros (date-sort, number-sort) if desired. It will also work on any object type which implements the standard Comparator interface.

Note: Those wishing to use 'natural' sorting order as defined by the text-sort macro will still need to use text-sort, as it is a different type of 'natural' sorting. Using this macro is the same as saying {text-sort:xxx|mode=exact}.

Usage

{natural-sort:prefix:key > prefix:key|order=[ascending,descending]}

Parameters

Name Required Default Description
order
ascending
May be 'ascending' or 'descending'.

See Also

Labels

macro macro Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.