FT_ADESSORT()
Sort an array in descending order
──────────────────────────────────────────────────────────────────────────────

Syntax

FT_ADESSORT( <aArray> [, <nStartIndex> [, <nEndIndex> ] ] ) -> aSorted

Arguments

<aArray> is the array to be sorted

<nStartIndex> is the first array item to include in the sort,
defaults to first element

<nEndIndex> is the last array element to include in the sort,
defaults to all elements

Returns

The array, sorted in descending order.

Description

This function is used to sort an array in descending order, i.e., Z-A

Examples

FT_ADESSORT(aNames) // Sort the Entire Array

FT_ADESSORT(aNames, 5) // Sort from the 5th Element On

FT_ADESSORT(aNames, , 10) // Sort the 1st 10 Elements

FT_ADESSORT(aNames, 5, 10) // Sort Elements 5-10

Source: ADESSORT.PRG

Author: David Husnian