@Override
    public int compareTo(@Nonnull final SamlIdentityProviderEntity entity) {
        return Comparator.comparing(SamlIdentityProviderEntity::getEntityID).compare(this, entity);
    }
This is {@link SamlIdentityProviderEntity}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-saml-idp-discovery/src/main/java/org/apereo/cas/entity/SamlIdentityProviderEntity.java