You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ea...@apache.org on 2018/07/11 10:41:49 UTC

qpid-dispatch git commit: DISPATCH-1075 Sort list of routers in console's Entities page

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 7dd16adf3 -> df76d8550


DISPATCH-1075 Sort list of routers in console's Entities page


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/df76d855
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/df76d855
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/df76d855

Branch: refs/heads/master
Commit: df76d85502d8edffe2dfb966cc45ad77a7309522
Parents: 7dd16ad
Author: Ernest Allen <ea...@redhat.com>
Authored: Wed Jul 11 06:41:30 2018 -0400
Committer: Ernest Allen <ea...@redhat.com>
Committed: Wed Jul 11 06:41:30 2018 -0400

----------------------------------------------------------------------
 console/stand-alone/plugin/js/qdrList.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/df76d855/console/stand-alone/plugin/js/qdrList.js
----------------------------------------------------------------------
diff --git a/console/stand-alone/plugin/js/qdrList.js b/console/stand-alone/plugin/js/qdrList.js
index 673ad0f..e162371 100644
--- a/console/stand-alone/plugin/js/qdrList.js
+++ b/console/stand-alone/plugin/js/qdrList.js
@@ -852,7 +852,9 @@ export class ListController {
       QDRService.management.topology.stopUpdating();
       QDRService.management.topology.delUpdatedAction('initList');
 
-      $scope.nodes = QDRService.management.topology.nodeList().sort(function (a, b) { return a.name.toLowerCase() > b.name.toLowerCase();});
+      $scope.nodes = QDRService.management.topology.nodeList().sort(function (a, b) { 
+        return a.name.toLowerCase() > b.name.toLowerCase() ? 1 : a.name.toLowerCase() < b.name.toLowerCase() ? -1 : 0;
+      });
       // unable to get node list? Bail.
       if ($scope.nodes.length == 0) {
         $location.path('/connect');


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org