title: How to sort vector<vector<int>>?
body: <p>I have a vector:</p>
  
  <pre><code>vector&lt;vector&lt;int&gt;&gt; myvector;
  </code></pre>
  
  <p>How can I sort this vector in an order as in alphabethical order for strings?</p>
  
  <p>e.g. Output:</p>
  
  <p>Unsorted:</p>
  
  <blockquote>
    <p>5 9 4 12 4</p>
    
    <p>7 9 3 4 7 9</p>
    
    <p>6 5 11 </p>
    
    <p>5 8 7 3</p>
    
    <p>5 9 5 1 1</p>
  </blockquote>
  
  <p>Sorted:</p>
  
  <blockquote>
    <p>7 9 3 4 7 9</p>
    
    <p>6 5 11 </p>
    
    <p>5 9 5 1 1</p>
    
    <p>5 9 4 12 4</p>
    
    <p>5 8 7 3</p>
  </blockquote>