def METHOD_NAME(member) -> list:
    """Derive a list of societies a member was part of."""
    societies = _member_group_memberships(
        member, lambda membership: (hasattr(membership.group, "society"))
    )
    return sorted(societies.values(), key=lambda x: x["earliest"])