mirror of https://github.com/apache/cloudstack.git
sort list idps by alphabest (#5599)
This commit is contained in:
parent
e63234e8fc
commit
298774e020
|
|
@ -202,6 +202,11 @@ export default {
|
|||
api('listIdps').then(response => {
|
||||
if (response) {
|
||||
this.idps = response.listidpsresponse.idp || []
|
||||
this.idps.sort(function (a, b) {
|
||||
if (a.orgName < b.orgName) { return -1 }
|
||||
if (a.orgName > b.orgName) { return 1 }
|
||||
return 0
|
||||
})
|
||||
this.selectedIdp = this.idps[0].id || ''
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue