1 #include "StatisticsHelper.h"
3 // swap function for integers
4 void swap (CORBA::Long
& x
, CORBA::Long
& y
)
13 void sort (LongVector
& vector
)
15 unsigned size
= vector
.size ();
23 for (pass
= 0; pass
< size
- 1; pass
++ )
27 for (j
= pass
+ 1; j
< size
; j
++ )
28 if (vector
[j
] < vector
[indexOfMin
] )
31 swap (vector
[pass
], vector
[indexOfMin
]);