Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #34 from awick/sortindices

Sort the indices by name
  • Loading branch information...
commit ca2cccdf594a31603a7fdf723731bf3f14aac1f1 2 parents fbc7eb6 + 8396c4c
@mobz authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/es/widgets.js
View
6 lib/es/widgets.js
@@ -721,7 +721,13 @@
acx.each(clusterNodes.nodes, function(name, node) {
getIndexForNode(name);
});
+
+ var indexNames = [];
acx.each(clusterState.routing_table.indices, function(name, index){
+ indexNames.push(name);
+ });
+ indexNames.sort().forEach(function(name) {
+ var index = clusterState.routing_table.indices[name];
acx.each(index.shards, function(name, shard) {
shard.forEach(function(replica){
var node = replica.node;
Please sign in to comment.
Something went wrong with that request. Please try again.