TVec::SortAscend Method

Overload List

#SignatureDescription
1TVec *SortAscend();Sorts vector elements in ascending order.
2TVec *SortAscend(int Index, int Len);Sort calling vector elements [Index]..[Index+Len-1].
3TVec *SortAscend(int Index, int Len, TVecInt *IndexVec);Sort calling vector elements [Index]..[Index+Len-1].
4TVec *SortAscend(TVecInt *IndexVec);Sort all calling vector elements.

Overload 1: TVec *SortAscend();

Sorts vector elements in ascending order.

Remarks:

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.

See Also: TVec::SortDescend
Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

Overload 2: TVec *SortAscend(int Index, int Len);

Sort calling vector elements [Index]..[Index+Len-1].

#NameTypeDescription
1Indexint
2Lenint
Remarks:

An exception is raised if TVec::ConditionCheck is True and array borders are overrun.

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

Overload 3: TVec *SortAscend(int Index, int Len, TVecInt *IndexVec);

Sort calling vector elements [Index]..[Index+Len-1].

#NameTypeDescription
1Indexint
2Lenint
3IndexVecTVecInt *
Remarks:

An exception is raised if TVec::ConditionCheck is True and array borders are overrun.

IndexVec contains the new order of elements. The order is stored in an array of integers which are accessible via the IValues property.

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler

Overload 4: TVec *SortAscend(TVecInt *IndexVec);

Sort all calling vector elements.

#NameTypeDescription
1IndexVecTVecInt *
Remarks:

IndexVec contains the new (zero based) order of elements. The order is stored in an array of integers which are accessible via the IValues property.

Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler