diff --git a/EST/js/app/MainController.js b/EST/js/app/MainController.js index 8bb4f48..3f62cf7 100644 --- a/EST/js/app/MainController.js +++ b/EST/js/app/MainController.js @@ -9,7 +9,7 @@ app.controller('MainController', ['$scope', '$http', 'ESService', function ($sco Materialize.toast('Connecting to elasticsearch', 500); $ess.getIndexes(url).then(function (stat) { Materialize.toast('Connected to elasticsearch', 3000, 'green'); - $scope.indexes = Object.keys(stat.data.indices); + $scope.indexes = Object.keys(stat.data.indices).sort(); $scope.esStat = stat.data; $scope.isConnected = true; });