Sort a Vector of custom objects
<p>I'm trying to sort a Vector in java but my Vector is not a vector of int, it is a vector of objects</p>

<p>the object is:</p>

<pre><code>public MyObject() {
    numObj = 0;
    price = new Price();
    pax = new Pax();        
}
</code></pre>

<p>so I have a <code>Vector</code> of <code>MyObject</code> and I want to order it by <code>numObject</code>, how do i do it, I'm new in java?</p>

<p>Thank you so much for all your help.</p>
