RAD routine: sort.array

A RAD routine called from subroutines to sort simple arrays, such as number, character, or date and time, in either ascending or descending order.

Routine

sort.array

Parameters

The following parameters are valid for the sort.array routine:

Name Data type Required Description
file record Yes When calling sort.array from Format Control, always pass $file to this parameter.
name character Yes The name of the input field (array) in $file you want to sort.
boolean1 Boolean No Controls the sort order. A value of true sorts in ascending order, and a value of falsesorts in descending order. The value is expressed as val(), for example, val("false", 4).