IArrayList.Reverse

Syntax

Reverse;

Description

The Reverse method sets reverse order of array elements.

Example

Sub UserProc;
Var
    ArrayL: IArrayList;
    i: Integer;
Begin
    ArrayL := New ArrayList.Create;
    For i := 0 To Math.RandBetweenI(50100Do
        ArrayL.Add(Math.RandBetweenI(0100));
    End For;
    ArrayL.Sort(Comparer.IntegerComparer);
    ArrayL.Reverse;
End Sub UserProc;

After executing the example a dynamic array of random numbers is generated, this array is sorted in descending order.

See also:

IArrayList