sort a custum Vector of objects
- by user307818
I'm trying to sort a Vector in java but my Vector is not a vector of int, it is a vector of objects
the object is :
public MyObject()
{
numObj = 0;
price = new Price();
pax = new Pax();
}
so I have a Vector of MyObject and I want to order it by numObject, how do i do it, i'm new in java?
thank you so much for all your help