def baby_names_list_from_table_rows(a_table_rows):
    """
    a_table_rows is a list of dictionaries
    return list of lists, discarding gender information contained in a_table_rows
    element [name, rank]
    list is sorted by name
    """
    print('baby_names_list_from_table_rows')

    baby_names_list = []
    for row in a_table_rows:
        baby_names_list.append([row['name_boy'], row['rank']])
        baby_names_list.append([row['name_girl'], row['rank']])

    def sort_key_from_array(an_array):
        """
        return key for sorted()
        """
        return an_array[0]

    baby_names_list = sorted(baby_names_list, key=sort_key_from_array)

    #print(baby_names_list)
    return baby_names_list