Updated Branches: refs/heads/master-6-17-stable 12b39cfd2 -> ecd0a1c24
ACL UI: Sort ACL items by number Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ef6f13b1 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ef6f13b1 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ef6f13b1 Branch: refs/heads/master-6-17-stable Commit: ef6f13b16f5f136e1ee1121f40fc117d429513f2 Parents: 12b39cf Author: Brian Federle <[email protected]> Authored: Mon Jul 8 10:57:20 2013 -0700 Committer: Brian Federle <[email protected]> Committed: Mon Jul 8 10:59:13 2013 -0700 ---------------------------------------------------------------------- ui/scripts/vpc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ef6f13b1/ui/scripts/vpc.js ---------------------------------------------------------------------- diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index bb493d1..efb1ee3 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -1028,7 +1028,9 @@ $.ajax({ url:createURL('listNetworkACLs&aclid=' + args.context.aclLists[0].id), success:function(json){ - var items = json.listnetworkaclsresponse.networkacl; + var items = json.listnetworkaclsresponse.networkacl.sort(function(a, b) { + return a.number >= b.number; + }); args.response.success({ data:items
