You can simply use the stream sorted method with static reference of getName and getAge methods.
List list=new ArrayList();
list.stream().sorted(Comparator.comparing(Employee::getName).thenComparing(Employee::getAge)).collect(Collectors.toList()).forEach(System.out::println);