VF_sortVD_sortVE_sort
VI_sortVBI_sortVSI_sortVLI_sortVQI_sort
VU_sortVUB_sortVUS_sortVUL_sortVUI_sort
FunctionSorting into ascending or descending order
Syntax C/C++#include <VFstd.h>
void VF_sort( fVector Y, fVector X, ui size, int dir );
C++ VecObj#include <OptiVec.h>
void vector<T>::sort( const vector<T>& X, int dir=1 );
Pascal/Delphiuses VFstd;
procedure VF_sort( Y, X:fVector; size:UIntSize; dir:Integer );
DescriptionThe vector is sorted in ascending order, if dir is positive; negative dir yields descending order. The present implementation uses the "Heapsort" algorithm.
Error handlingnone
Return valuenone
See alsoVF_sortind,   VF_rotate,   VF_rev,   qsort (C/C++ only)

VectorLib Table of Contents  OptiVec home