title: How to use Java comparator properly?
body: <p>If I have the following class:</p>
  
  <pre><code>public class Employee {
      private int empId;
      private String name;
      private int age;
  
      public Employee(int empId, String name, int age) {
          // set values on attributes
      }
      // getters &amp; setters
  }
  </code></pre>
  
  <p>How can I use comparator that compares by name, then age, then id?</p>