TSubstringListLinguistic.Sort Method

Overload List

#SignatureDescription
1procedure Sort; overload;Sorts the list by its comparison, stably; a sorted list is left as it is.
2procedure Sort(const Compare: TSubstringListSortCompare); overload;Sorts the list by Compare, stably, as CustomSort.

Overload 1: procedure Sort; overload;

Sorts the list by its comparison, stably; a sorted list is left as it is.

Result: stored in self (calling object)

Remarks:

Only the items' order changes: no text moves, and no memory is taken.

Overload 2: procedure Sort(const Compare: TSubstringListSortCompare); overload;

Sorts the list by Compare, stably, as CustomSort.

#NameDescription
1Compare

The order: negative when Item1 sorts before Item2, 0 when they are equal, positive after.

Result: stored in self (calling object)