Apache Solr open-source search software
SOLR-15153 - Collection selector drop down does not sort collections (#63)
Edward Ribeiroa8706b492be3
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex e8555429ed0..e56a5c48165 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -45,6 +45,8 @@ Improvements* SOLR-14223: PKI Auth can bootstrap from existing key files instead of creating new keys on startup (Mike Drob)+* SOLR-15153: Collection selector drop down does not sort collections (Edward Ribeiro)+* SOLR-11725: Use corrected sample formula for computing stdDev and variance in JSON aggregations(hossman, Munendra S N, yonik)diff --git a/solr/core/src/java/org/apache/solr/handler/admin/CollectionsHandler.java b/solr/core/src/java/org/apache/solr/handler/admin/CollectionsHandler.javaindex 9e2a18aebf7..1d689d0105d 100644--- a/solr/core/src/java/org/apache/solr/handler/admin/CollectionsHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/admin/CollectionsHandler.java@@ -916,6 +916,7 @@ public class CollectionsHandler extends RequestHandlerBase implements PermissionNamedList<Object> results = new NamedList<>();Map<String, DocCollection> collections = h.coreContainer.getZkController().getZkStateReader().getClusterState().getCollectionsMap();List<String> collectionList = new ArrayList<>(collections.keySet());+ Collections.sort(collectionList);// XXX should we add aliases here?results.add("collections", collectionList);SolrResponse response = new OverseerSolrResponse(results);