IStringList.Reverse

Syntax

Reverse;

Description

The Reverse method inverts the array.

Example

Sub UserProc;
Var
    StrL: IStringList;
    i: Integer;
Begin
    StrL := New StringList.Create;
    For i := 0 To Math.RandBetweenI(50100Do
        StrL.Add("Number " + Math.RandBetweenI(0100).ToString);
    End For;
    StrL.Sort;
    StrL.Reverse;
End Sub UserProc;

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

See also:

IStringList