Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-843 dc2cee3d7 -> 7f915a5f5


IGNITE-843: Sort caches for clusters and clusters for caches.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/7f915a5f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/7f915a5f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/7f915a5f

Branch: refs/heads/ignite-843
Commit: 7f915a5f5fa094b9cf88e3b256fff84dd3572572
Parents: dc2cee3
Author: AKuznetsov <akuznet...@gridgain.com>
Authored: Tue Aug 18 15:24:00 2015 +0700
Committer: AKuznetsov <akuznet...@gridgain.com>
Committed: Tue Aug 18 15:24:00 2015 +0700

----------------------------------------------------------------------
 modules/control-center-web/src/main/js/routes/caches.js   | 2 +-
 modules/control-center-web/src/main/js/routes/clusters.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/7f915a5f/modules/control-center-web/src/main/js/routes/caches.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/routes/caches.js 
b/modules/control-center-web/src/main/js/routes/caches.js
index 9f3e255..7edd742 100644
--- a/modules/control-center-web/src/main/js/routes/caches.js
+++ b/modules/control-center-web/src/main/js/routes/caches.js
@@ -51,7 +51,7 @@ router.post('/list', function (req, res) {
             });
 
             // Get all clusters for spaces.
-            db.Cluster.find({space: {$in: space_ids}}, '_id name', function 
(err, clusters) {
+            db.Cluster.find({space: {$in: space_ids}}, '_id 
name').sort('name').exec(function (err, clusters) {
                 if (_processed(err, res)) {
                     // Get all caches type metadata for spaces.
                     db.CacheTypeMetadata.find({space: {$in: space_ids}}, '_id 
name kind', function (err, metadatas) {

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/7f915a5f/modules/control-center-web/src/main/js/routes/clusters.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/routes/clusters.js 
b/modules/control-center-web/src/main/js/routes/clusters.js
index a027552..9da8200 100644
--- a/modules/control-center-web/src/main/js/routes/clusters.js
+++ b/modules/control-center-web/src/main/js/routes/clusters.js
@@ -51,7 +51,7 @@ router.post('/list', function (req, res) {
             });
 
             // Get all caches for spaces.
-            db.Cache.find({space: {$in: space_ids}}, '_id name swapEnabled', 
function (err, caches) {
+            db.Cache.find({space: {$in: space_ids}}, '_id name 
swapEnabled').sort('name').exec(function (err, caches) {
                 if (_processed(err, res)) {
                     // Get all clusters for spaces.
                     db.Cluster.find({space: {$in: 
space_ids}}).sort('name').exec(function (err, clusters) {

Reply via email to