How to order a Vector added?
Let's say i hav this point system where i retrieved value from the DB and add the points. let's say
the code is:
int x = 0;
int total = 0;
while(x < vVector.size())
{
total = Integer.parseInt(String.valueOf(vVector.get(x))) + Integer.parseInt(String.valueOf(vVector.get(x+1)));
vPoints.addElement(total); x = x + 2;
}
From the vector vPoints, i want to order all the values that i got and display the 5 highest values.
How do i order the values in ascending or descending?

