TAbstractMtxVecInt.SortDescend Method

Overload List

#SignatureDescription
1TMtxVecInt SortDescend(TMtxVecInt DstSortIdx, Int32 SortIdxIndex, Int32 Index, Int32 Len)Sort all calling vector elements in descending order in-place.
2TMtxVecInt SortDescend(Int32 Index, Int32 Len)Sort calling vector elements [Index..Index+Len-1] in descending order in-place.

Overload 1: TMtxVecInt SortDescend(TMtxVecInt DstSortIdx, Int32 SortIdxIndex, Int32 Index, Int32 Len)

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.

Overload 2: TMtxVecInt SortDescend(Int32 Index, Int32 Len)

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

#NameTypeDescription
1IndexInt32start index
2LenInt32element count

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