VectorInt.SortAscend Method

Overload List

#SignatureDescription
1function SortAscend: TMtxVecInt;Sort all calling vector elements in ascending order in-place.
└ indexed: function SortAscend(const Index: Integer; const Len: Integer): TMtxVecInt;
2function SortAscend(const DstSortIdx: TVecInt): TVecInt;Sort all calling vector elements in ascending order in-place.

Overload 1: function SortAscend: TMtxVecInt;

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

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

See Also: VectorInt.SortDescend

Indexed: function SortAscend(const Index: Integer; const Len: Integer): TMtxVecInt;

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

#NameTypeDescription
1IndexIntegerstart index
2LenIntegerelement count

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

Overload 2: function SortAscend(const DstSortIdx: TVecInt): TVecInt;

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

#NameDescription
1DstSortIdxAfter 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.