Java 8 has made this really easy: List<Employee> list = ... list.sort(Comparator.comparing(Employee::getSalary).thenComparing(Employee::getName));