Implement correct comparison of list members.