IList<T>.Sort Method

Overloads

Sort

Sorts the values in the list by using the default comparer.

Sort(IComparer<T>)

Sorts the values in the list by using a comparer.

Sort(TComparison<T>)

Sorts the values in the list by using a comparison callback.

Sort

Sorts the values in the list by using the default comparer.

Delphi
procedure Sort; overload;

Remarks

The default comparer is provided by the Delphi RTL for type T.

Sort(IComparer<T>)

Sorts the values in the list by using a comparer.

Delphi
procedure Sort(const Comparer: IComparer<T>); overload;

Parameters

Comparer
IComparer<T>

The IComparer<T> used to order values.

Remarks

If Comparer is nil, the default comparer is used.

Sort(TComparison<T>)

Sorts the values in the list by using a comparison callback.

Delphi
procedure Sort(const Comparison: TComparison<T>); overload;

Parameters

Comparison
TComparison<T>

The TComparison<T> callback used to order values.

Remarks

If Comparison is nil, the default comparer is used.