TVecInt.SortDescend Method

Overload List

#SignatureDescription
1function SortDescend: TVecInt;Sort all calling vector elements in descending order in-place.
└ indexed: function SortDescend(Index: Integer; Len: Integer): TMtxVecInt;
2function SortDescend(DstSortIdx: TVecInt): TVecInt;Sort all calling vector elements in descending order in-place.
3function SortDescend(DstSortIdx: TMtxVecInt; SortIdxIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;Sort all calling vector elements in descending order in-place.

Overload 1: function SortDescend: TVecInt;

Sort all calling vector elements in descending order in-place.

Result: stored in self (calling object), returns self for chaining

See Also: TVecInt.SortAscend

Indexed: function SortDescend(Index: Integer; Len: Integer): TMtxVecInt;

Sort calling vector elements [Index..Index+Len-1] in descending order in-place.

#NameTypeDescription
1IndexIntegerstart index
2LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Overload 2: function SortDescend(DstSortIdx: TVecInt): TVecInt;

Sort all calling vector elements in descending order in-place.

#NameDescription
1DstSortIdxAfter execution stores sorted values indices.

Result: stored in self (calling object), returns self for chaining

Remarks:

Size of DstSortIdx and calling vector are adjusted automatically.

Overload 3: function SortDescend(DstSortIdx: TMtxVecInt; SortIdxIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Sort all calling vector elements in descending order in-place.

#NameDescription
1DstSortIdxAfter execution stores sorted values indices.
2SortIdxIndexThe starting index at which to store sorted values indices in DstSortIdx.
3IndexThe starting index at which to start the sort.
4LenThe number of elements to sort starting from including zero-based Index.

Result: stored in self (calling object), returns self for chaining

Returns: calling vector, storing sorted values.

Remarks:

Size of DstSortIdx and calling vector are adjusted automatically.