mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Sort domains alphabetically
When using domains.push, domains are listed in reverse alphabetically order. I assume that using domain.unshift should make the domain list alphabetically sorted
This commit is contained in:
parent
95f8503e6d
commit
729178a1a1
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
|||
c.api('PUT', '/domains/main', {}, function(data2) {
|
||||
var domains = [];
|
||||
$.each(data.domains, function(k, domain) {
|
||||
domains.push({
|
||||
domains.unshift({
|
||||
url: domain,
|
||||
main: (domain == data2.current_main_domain) ? true : false
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue