What determined the order of girls' and boys' names
in the lists below?

Girls: Heather, Ellen, Laura, Anne, Nancy

Boys: Andy, Ted, Mike, Dick, Vic

In the list of girls' names, the second letter of
each name is the first letter of the next. In the
list of boys' names, the second-to-last letter in
each name is the last letter of the following name.