TSubstringList.SortAscend Method

procedure SortAscend;

Sort: ascending by the list's comparison.

Result: stored in self (calling object)

Examples

Ascending.

uses Substr;

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