sort filenames

This commit is contained in:
htmltiger 2021-12-30 02:44:32 +00:00 committed by GitHub
parent d5b03bbc3f
commit a946333361
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {