title: Implementing a Comparator with a specific condition
body: <p>I need to implement Comparator to sort <code>Employee</code> objects based on a specific condition.</p>
  <pre><code> class Employee
   {
        int employeeId;
        String employeeName;
  
   }
  </code></pre>
  <p>So I already have a sorted list of  List in my hand and I modify the sort order as follows</p>
  <ol>
  <li>Maintain the sort order</li>
  <li>If employeeName is 'Rock Hudson' in the Employee object, add it to the top of the list.</li>
  </ol>
  <p><strong>&gt;Input:</strong></p>
  <blockquote>
  <p>1 Alan Border</p>
  <p>2 Betty Edwards</p>
  <p>3 Rock Hudson</p>
  <p>4 Quentin Tarantino</p>
  <p>5 Woody Allen</p>
  </blockquote>
  <p><strong>&gt;Output</strong>:</p>
  <blockquote>
  <p>3 Rock Hudson</p>
  <p>1 Alan Border</p>
  <p>2 Betty Edwards</p>
  <p>4 Quentin Tarantino</p>
  <p>5 Woody Allen</p>
  </blockquote>