You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > SortAscend Method > Vector.SortAscend Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.SortAscend Method ()

Sorts vector elements in ascending order.

Pascal
function SortAscend: TVec; overload;

Sort all calling vector elements.

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: Vector; begin a.SetIt(True,[2,1,3,4]); a.SortAscend; // a = [1,2,3,4] end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!