def alphebetize_names(decades):
    """
    alphabetizes names for the purposes of printing
    Parameters:
    arg1 (decades): array of decade data
    Returns:
    string[] alphabetized_name_list: list of alphabetized names
    """
    alphabetizedname_list = []
    for decade in decades:
        for name in decade.gender_dict:
            if name not in alphabetizedname_list:
                alphabetizedname_list.append(name)
    alphabetizedname_list.sort()
    return alphabetizedname_list