You are here: Symbol Reference > AbstractMtxVecInt Namespace > Classes > TMtxVecInt Class > public > SortDescend Method > TMtxVecInt.SortDescend Method (TMtxVecInt, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVecInt.SortDescend Method (TMtxVecInt, integer, integer, integer)

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

Pascal
function SortDescend(DstSortIdx: TMtxVecInt; SortIdxIndex: integer; Index: integer; Len: integer): TMtxVecInt; overload;
Parameters 
Description 
DstSortIdx 
After execution stores sorted values indices. 
SortIdxIndex 
The starting index at which to store sorted values indices in DstSortIdx. 
Index 
The starting index at which to start the sort. 
Len 
The number of elements to sort starting from including zero-based Index. 

calling vector, storing sorted values.

Size of DstSortIdx and calling vector are adjusted automatically.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!