CLOUDSTACK-9220 Sort list of domains on Domain tab in UI

This commit is contained in:
Remi Bergsma 2016-01-09 21:02:38 +01:00
parent 456d854480
commit 93bbc1afb7
1 changed files with 10 additions and 0 deletions

View File

@ -722,6 +722,11 @@
async: false,
success: function(json) {
var domainObjs = json.listdomainsresponse.domain;
if (domainObjs != null && domainObjs.length > 0) {
domainObjs.sort(function(a, b) {
return a.name.localeCompare(b.name);
});
}
args.response.success({
actionFilter: domainActionfilter,
data: domainObjs
@ -735,6 +740,11 @@
async: false,
success: function(json) {
var domainObjs = json.listdomainchildrenresponse.domain;
if (domainObjs != null && domainObjs.length > 0) {
domainObjs.sort(function(a, b) {
return a.name.localeCompare(b.name);
});
}
args.response.success({
actionFilter: domainActionfilter,
data: domainObjs