TSubstringList.SortDescend Method

procedure SortDescend;

Sorts descending by the list's comparison, stably; a sorted list is left as it is.

Result: stored in self (calling object)

Examples

Descending.

uses Substr;

procedure Example;
var List: TSubstringList;
begin
    List := TSubstringList.Create(4);
    try
        List.Add('b');
        List.Add('c');
        List.Add('a');
        List.SortDescend;
        Assert(List[0] = 'c');
        Assert(List[2] = 'a');
    finally
        List.Free;
    end;
end;
See Also: TSubstringList.SortAscend, TSubstringList.Sort, TSubstringList.Sort