Permalink
Browse files

Merge pull request #34 from awick/sortindices

Sort the indices by name
  • Loading branch information...
2 parents fbc7eb6 + 8396c4c commit ca2cccdf594a31603a7fdf723731bf3f14aac1f1 @mobz committed Aug 15, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/es/widgets.js
View
@@ -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;

0 comments on commit ca2cccd

Please sign in to comment.