FORMULA LANGUAGE

@Sort
Example

Sorts a list.

Note This @function is new with Release 6.

Syntax

@Sort( list ; [ order ]; customSortExpression )

Parameters

list


[ order ]
customSortExpression
Return value

list


Usage

The ascending, case-, and accent-sensitive sort sequence for the English character set is as follows: the numbers 0-9, the alphabetic characters A-Z then a-z, the apostrophe, the dash, and the remaining special characters. Pitch-sensitivity affects double-byte languages.

If you set Unicode standard sorting as the sorting option, you cannot select the following keywords or combinations:

You specify Unicode standard sorting by setting the notes.ini variable $CollationType to @UCA, or by selecting the "Unicode standard sorting" checkbox that displays in the following dialog boxes:
*The Unicode option is disabled in the Database and Design Document Properties boxes until you select a default sort order.

For more information on Unicode sorting, see http://oss.software.ibm.com/icu/

A date-time value with a wildcard time (no time specified) equals all date-time values for the same date. For example, the following dates are considered equal:

[12/12/2000] : [12/12/2000 1:00 PM] : [12/11/2000 - 12/13/2000]

These values are sorted in random order and may be ordered differently with each sort if multiple sorts are performed on them.

Example
See Also