From: Rafał Miłecki Date: Mon, 12 Sep 2022 14:11:38 +0000 (+0200) Subject: luci-app-ddns: sort list of services X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=74cf149544010645dd69f3e9029d0a181138a55a;p=project%2Fluci.git luci-app-ddns: sort list of services It makes it much easier to find selected service provider. Signed-off-by: Rafał Miłecki --- diff --git a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js index 4b786e83c5..8a8c27c718 100644 --- a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js +++ b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js @@ -91,6 +91,8 @@ return view.extend({ _this.services[service.name.replace('.json','')] = true }); + this.services = Object.fromEntries(Object.entries(this.services).sort()); + list_service.forEach(function (service) { if (!_this.services[service]) _this.services[service] = false;