title: Get (next) Max object from a vector
body: <p>OK, so here's my issue :</p>
  
  <ul>
  <li>I'm having a class (let's call that <code>MyClass</code>), with several variables (one of which is <code>score</code>)</li>
  <li>I'm also having a vector of <code>MyClass</code> objects (e.g. <code>vector&lt;MyClass&gt; MyObjects;</code>)</li>
  </ul>
  
  <p>Now, given that I tried sorting the array (with <code>sort(MyObjects.begin(),MyObjects.end(),MyClassCompare());</code>) and noticed a considerable drop in performance (and also that some of the elements of the vector may not be needed at all in the end), I'm trying to :</p>
  
  <ul>
  <li>Pick the (current) max element (the one with the maximum <code>score</code> value)</li>
  <li>Remove that from the vector</li>
  <li>Pick next max element</li>
  <li>And so on...</li>
  </ul>
  
  <p>Is there any way to achieve that using built-in functions/libraries, in C++?
  Any ideas?</p>
  
  <hr>
  
  <p><strong>HINT :</strong> Speed and performance are <em>crucial</em>.</p>