diff --git a/src/module-elasticsuite-indices/Model/IndexStatsProvider.php b/src/module-elasticsuite-indices/Model/IndexStatsProvider.php index ac0fc603e..f4a4f30d1 100644 --- a/src/module-elasticsuite-indices/Model/IndexStatsProvider.php +++ b/src/module-elasticsuite-indices/Model/IndexStatsProvider.php @@ -86,6 +86,7 @@ public function getElasticSuiteIndices($params = []): array $this->elasticsuiteIndices[$name] = $aliases ? key($aliases['aliases']) : null; } } + ksort($this->elasticsuiteIndices, SORT_STRING | SORT_NATURAL); } return $this->elasticsuiteIndices; diff --git a/src/module-elasticsuite-indices/view/adminhtml/templates/view/items.phtml b/src/module-elasticsuite-indices/view/adminhtml/templates/view/items.phtml index 0bb4a90ca..a10039b11 100644 --- a/src/module-elasticsuite-indices/view/adminhtml/templates/view/items.phtml +++ b/src/module-elasticsuite-indices/view/adminhtml/templates/view/items.phtml @@ -21,7 +21,7 @@
getItemsCollection(); ?> - +