Order results by value
<p>I want to loop through a vector to find records with a given ID.  The ID is provided by the user.  The code below will return all values with the given ID in the order they appear in the vector.  How can I order the results by Price, say from lowest to highest?</p>

<pre><code>   for(Seek = List.begin() ; Seek !=List.end() ; Seek++) {
    if(Seek-&gt;GetID() == Input)
        cout &lt;&lt;"Price: " &lt;&lt; Seek-&gt;GetPrice() &lt;&lt; endl;
</code></pre>
