You are here: Symbol Reference > MtxVecInt Namespace > Classes > TMtxInt Class > public > SortAscend Method > TMtxInt.SortAscend Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxInt.SortAscend Method ()

Sorts the elements in a matrix row(s) in ascending order.

Pascal
function SortAscend: TMtxInt; overload;

Sorts the elements in calling matrix row(s) in ascending order in-place.

Each row is sorted independently from the other.

var A: TMtxInt; begin CreateIt(A); try A.SetIt(2,2,[1,2, 4,2]); A.SortAscend; // A becomes: // [1,2] // [2,4] finally FreeIt(A); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!