Describe the bug Currently when trying to configure multiple repositories in spring config server along with AWSParameterStore, the order specified for the AWSParameterStore is not followed.

Version : v3.1.3 Module : Spring-Cloud-Config-Server

applicationConfig:

spring: profiles: active: - awsparamstore - aws-secretsmanager - git name: app-config-server cloud: config: server: fail-on-composite-error: false aws-secretsmanager: prefix: /aws profile-separator: '-' order: 1 awsparamstore: prefix: /aws profile-separator: '/' order: 2 git: uri: https://github.com/organization/{application} order: 3

The issue is caused by AwsParameterStoreEnvironmentRepository not implementing Ordered interface which results in wrong sorting by class org.springframework.cloud.config.server.environment.CompositeEnvironmentRepository

public CompositeEnvironmentRepository(List<EnvironmentRepository> environmentRepositories, boolean failOnError) {
    // Sort the environment repositories by the priority
    Collections.sort(environmentRepositories, OrderComparator.INSTANCE);
    this.environmentRepositories = environmentRepositories;
    this.failOnError = failOnError;
}