Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function SortDescend: TMtxVecInt; | Sort all calling vector elements in descending order in-place. |
| └ indexed: function SortDescend(const Index: Integer; const Len: Integer): TMtxVecInt; | ||
| 2 | function SortDescend(const DstSortIdx: TVecInt): TVecInt; | Sort all calling vector elements in descending order in-place. |
Overload 1: function SortDescend: TMtxVecInt;
Sort all calling vector elements in descending order in-place.
Result: stored in self (calling object), returns self for chaining
See Also: VectorInt.SortAscend
Indexed: function SortDescend(const Index: Integer; const Len: Integer): TMtxVecInt;
Sort calling vector elements [Index..Index+Len-1] in descending order in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Integer | start index |
| 2 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Overload 2: function SortDescend(const DstSortIdx: TVecInt): TVecInt;
Sort all calling vector elements in descending order in-place.
| # | Name | Description |
|---|---|---|
| 1 | DstSortIdx | After execution stores sorted values indices. |
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.