title: Java Using Comparators in combination with custom Comparators
body: <p>I want to sort the following example list which currently contains only Strings with my own custom rules.</p>
  <pre><code>ArrayList&lt;String&gt; coll = new ArrayList&lt;&gt;();
  coll.add(&quot;just&quot;);
  coll.add(&quot;sdsd&quot;);
  coll.add(&quot;asb&quot;);
  coll.add(&quot;b as&quot;);
  coll.add(&quot;just&quot;);
  coll.add(&quot;dhfga&quot;);
  coll.add(&quot;jusht&quot;);
  coll.add(&quot;ktsa&quot;);
  coll.add(&quot;just&quot;);
  coll.add(&quot;just&quot;);
  </code></pre>
  <p>I know that I could write my own comparator for this, but as I know that Java also got comparators which solve this problem partially I want to know how I can use the ones from the Java API <strong>in combination</strong> with my own one.</p>
  <hr />
  <h2>How should it be sorted?</h2>
  <p>The word <code>just</code> should always be the first word to appear in the list followed by all other words in alphabetical order.</p>
  <p><code>Comparator.naturalOrder()</code> sorts the list in alphabetical order, but how can I combine this comperator with a custom one which checks whether the word is <code>just</code> or something else.</p>