title: Sort array of objects by one property of nested object
body: <p>I need to compare an array of objects by one property of one of its objects property.<br>
  I am doing :</p>
  
  <pre><code>List&lt;Sell&gt; collect = sells.stream()
          .sorted(Comparator.comparing(Sell::getClient.name, String::compareToIgnoreCase))
          .collect(Collectors.toList());
  </code></pre>
  
  <p>It's not compiling, doesn anyone know how to do?</p>
  
  <p>Thanks.</p>