From 74cf149544010645dd69f3e9029d0a181138a55a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Mon, 12 Sep 2022 16:11:38 +0200 Subject: [PATCH] luci-app-ddns: sort list of services MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It makes it much easier to find selected service provider. Signed-off-by: Rafał Miłecki --- .../htdocs/luci-static/resources/view/ddns/overview.js | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2