title: sorting a List<List<Integer>> using java Collections.sort()
body: <p>I have a list of list  as follow:</p>
  
  <pre><code>List&lt;List&lt;Integer&gt;&gt; matchedPostions = findTerms(originalEntPos, singularEntPos, singText);
  </code></pre>
  
  <p>Consider this example</p>
  
  <pre><code>[ID,StartPostion,EndPostion]
        ^^^
  [1,198,200]
  [2,50,61]
  </code></pre>
  
  <p>I am trying to sort list using <code>Collections.sort()</code>. How can I sort the values inside the <code>matchedPostions</code> based on the <code>StartPostion</code> values, from lower to higher values?</p>