We consider names of people that consist of first and last names, such as “Joe Smith”. When you sort names, you first sort by last name and, if two people have the same last name, then you sort by first name. For example, “Jane Doe” comes before “Harry Hacker”, but “Amy Doe” comes before “Jane Doe”.