title: sort same elements of vector in ascending order
body: <pre><code>bool third_parameter(const pair&lt;long long,long long&gt; &amp;a,
                         const pair&lt;long long,long long&gt; &amp;b)
      {
          return a.second&gt;b.second;
      }
  
  int main (){
          sort(vec.begin(), vec.end(), third_parameter );
      return 0;
      }
  </code></pre>
  
  <p>I use this sorting technique up here, but this doesn't guarantee me anything when it comes to same elements of the vector. I am using a vector of pairs which has an increasing number i in .first and an int in .second. I want when it finds two equal .second elements to sort them in ascending order of .first.  </p>