RepoConfigLoader: main-repo priority before sort