For the example given in the topic about people, implement the compareTo method. It should compare people by name, and if they have the same name, compare them by age.
public class Person {
private String name;
private int age;
private int height;
private int weight;
// constructor
// getters, setters
}