TArray.Sort<T> Method

Overloads

Sort<T>(array of T)

Sorts the elements in an array using the default comparer.

Sort<T>(array of T, IComparer<T>)

Sorts the elements in an array using the specified comparer.

Sort<T>(array of T, IComparer<T>, Integer, Integer)

Sorts the specified range of elements in an array using the specified comparer.

Sort<T>(array of T, TComparison<T>)

Sorts the elements in an array using the specified comparison.

Sort<T>(array of T, TComparison<T>, Integer, Integer)

Sorts the specified range of elements in an array using the specified comparison.

Sort<T>(array of T)

Sorts the elements in an array using the default comparer.

Delphi
class procedure Sort<T>(var values: array of T)

Type Parameters

T

Parameters

values
array of T

Sort<T>(array of T, IComparer<T>)

Sorts the elements in an array using the specified comparer.

Delphi
class procedure Sort<T>(var values: array of T; const comparer: IComparer<T>)

Type Parameters

T

Parameters

values
array of T
comparer
IComparer<T>

Sort<T>(array of T, IComparer<T>, Integer, Integer)

Sorts the specified range of elements in an array using the specified comparer.

Delphi
class procedure Sort<T>(var values: array of T; const comparer: IComparer<T>; index: Integer; count: Integer)

Type Parameters

T

Parameters

values
array of T
comparer
IComparer<T>
index
Integer
count
Integer

Sort<T>(array of T, TComparison<T>)

Sorts the elements in an array using the specified comparison.

Delphi
class procedure Sort<T>(var values: array of T; const comparison: TComparison<T>)

Type Parameters

T

Parameters

values
array of T
comparison
TComparison<T>

Sort<T>(array of T, TComparison<T>, Integer, Integer)

Sorts the specified range of elements in an array using the specified comparison.

Delphi
class procedure Sort<T>(var values: array of T; const comparison: TComparison<T>; index: Integer; count: Integer)

Type Parameters

T

Parameters

values
array of T
comparison
TComparison<T>
index
Integer
count
Integer