title: Order by some property nulls first?
body: <p>I have List of some objects. And i want to order by some property and nulls first, such as in query:</p>
  <pre><code>select * from aaa order by ext_id nulls first;
  </code></pre>
  <p>I know when i have list of string i can do this:</p>
  <pre><code>   List&lt;String&gt; names2 = Arrays.asList(&quot;XML&quot;, null, &quot;Java&quot;, &quot;HTML&quot;, &quot;CSS&quot;);
      names2.sort(Comparator.nullsFirst(String::compareTo));
  </code></pre>
  <p>But what when i have List of some objects of class?</p>
  <p>Any suggestion how can i achive that in java?</p>