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

Sorts vector elements in descending order.

Syntax
C#
Visual Basic
public TVec SortDescend();

Sort all calling vector elements in descending order. 

Note If the vector is complex, the complex values are first compared by the absolute value and then by the argument.

var a: TVec; begin CreateIt(a); try a.SetIt(True,[2,1,3,4]); a.SortDescend; // a = [4,3,2,1] finally FreeIt(a); end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!