Dashboard > Atlassian Plugins > ... > Macros > natural-sort
  Atlassian Plugins Log In | Sign Up   View a printable version of the current page.  
  natural-sort

Added by David Peterson , last edited by David Peterson on Aug 10, 2007  (view change)
Labels: 

{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

Copyright(c) CustomWare Asia Pacific Pty Ltd
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators