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

Sorts vector elements in ascending order.

Syntax
C#
Visual Basic
public TVec SortAscend();

Sort all calling vector elements. 

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

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