from typing import Dict


def to_affiliations_list(dict_: Dict):
    """Convert affiliation dict into a list.

    :param dict_: affiliation dict.
    :return: affiliation list.
    """

    l_ = []
    for k, v in dict_.items():
        v["members"] = list(v["members"])
        v["members"].sort()
        if "count" in v:
            v["count"] = len(v["rors"])
            v.pop("rors", None)
        l_.append(v)
    l_.sort(key=lambda x: x["identifier"])
    return l_