You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxInt Class > TMtxInt Methods > SortDescend Method > TMtxInt.SortDescend Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxInt.SortDescend Method ()

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

Syntax
C#
Visual Basic
public TMtxInt SortDescend();

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

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.SortDescend; // A becomes: // [2,1] // [4,2] finally FreeIt(A); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!