@Override
    public int compareTo(@Nonnull final ConfigurationMetadataSearchResult result) {
        return Comparator.comparingInt(ConfigurationMetadataSearchResult::getOrder)
            .thenComparing(ConfigurationMetadataSearchResult::getName)
            .thenComparing(ConfigurationMetadataSearchResult::getGroup)
            .compare(this, result);
    }
This is {@link ConfigurationMetadataSearchResult}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-configuration-metadata-repository/src/main/java/org/apereo/cas/metadata/rest/ConfigurationMetadataSearchResult.java