title: Problems with sorting List<List<String>> java?
body: <p>I have one List&lt;List&gt; I want to sort it according to column . I used the following code.</p>
  <pre class="lang-java prettyprint-override"><code>    // data is List&lt;List&lt;String&gt;&gt;
      data.sort(Comparator.comparing(e-&gt; e.get(col)));                
  </code></pre>
  <p>Its working and sorting according column specified. But If I used <code>reversed()</code> or <code>thenComparing()</code> method, It says</p>
  <pre class="lang-java prettyprint-override"><code>error: cannot find symbol
                      data.sort(Comparator.comparing(e-&gt; e.get(col)).reversed()  );
                                                          ^
    symbol:   method get(int)
    location: variable e of type Object
  </code></pre>
  <p>Also with the thenComparing method,</p>
  <pre class="lang-java prettyprint-override"><code>error: cannot find symbol
                      data.sort(Comparator.comparing(e-&gt; e.get(col)).thenComparing(e-&gt;e.get(col2))  );
                                                          ^
    symbol:   method get(int)
    location: variable e of type Object
  
  error: cannot find symbol
                      data.sort(Comparator.comparing(e-&gt; e.get(col)).thenComparing(e-&gt;e.get(col2))  );
                                                                                       ^
    symbol:   method get(int)
    location: variable e of type Object
  2 errors
  </code></pre>
  <p>I'm not getting anything from the error messages. Fyi, Im using OpenJDK 11 for this.</p>