From a9463333618a56b59cb1eba307604efa09e49828 Mon Sep 17 00:00:00 2001 From: htmltiger <1429451+htmltiger@users.noreply.github.com> Date: Thu, 30 Dec 2021 02:44:32 +0000 Subject: [PATCH] sort filenames --- config-editor-card.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config-editor-card.js b/config-editor-card.js index 00fb4c8..a184d8c 100644 --- a/config-editor-card.js +++ b/config-editor-card.js @@ -1,4 +1,4 @@ -console.info("Config Editor 1.2"); +console.info("Config Editor 1.3"); const LitElement = window.LitElement || Object.getPrototypeOf(customElements.get("hui-masonry-view") ); const html = LitElement.prototype.html; @@ -60,7 +60,7 @@ async Coder(){ async List(){ this.infoLine = 'List Loading...'; const e=(await this._hass.callWS({type: "config_editor/ws", action: 'list', data: '', file: ''})); - this.fileList = e.file; + this.fileList = e.file.slice().sort(); this.infoLine = e.msg; } async Load(x) {