You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > MatrixInt Structure > MatrixInt Methods > SortAscend Method > MatrixInt.SortAscend Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
MatrixInt.SortAscend Method ()

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

Syntax
C#
Visual Basic
public TMtxInt SortAscend();

Sorts the elements in calling matrix row(s) in ascending order in-place. If the calling matrix is complex, then complex values are first compared by the absolute value and then by the argument. 

Note 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;
Copyright (c) 1999-2022 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!