cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [1/4] git commit: updated refs/heads/master to 74e33dc
Date Sat, 05 Dec 2015 17:50:07 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 2093c33eb -> 74e33dc5a


Sorting of security groups


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

Branch: refs/heads/master
Commit: ff7a5bbd9b615818bb4b4691df0fc8d9170a0c5d
Parents: f0cd632
Author: atrbgithub <atrbgithub@gmail.com>
Authored: Fri Oct 16 21:13:51 2015 +0100
Committer: atrbgithub <atrbgithub@gmail.com>
Committed: Fri Oct 16 21:13:51 2015 +0100

----------------------------------------------------------------------
 ui/scripts/instanceWizard.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ff7a5bbd/ui/scripts/instanceWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/instanceWizard.js b/ui/scripts/instanceWizard.js
index 1401ace..63a736a 100644
--- a/ui/scripts/instanceWizard.js
+++ b/ui/scripts/instanceWizard.js
@@ -679,6 +679,11 @@
                                 for (var i = 0; i < items.length; i++) {
                                     securityGroupArray.push(items[i]);
                                 }
+                                securityGroupArray.sort(function(a, b){
+                                    if(a.name < b.name) return -1;
+                                    if(a.name > b.name) return 1;
+                                    return 0;
+                                })
                             }
                         }
                     });


Mime
View raw message