From b0fea1e7c1a80425077088293183d9edf70ed4bf Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Fri, 1 Dec 2023 01:28:05 +0100 Subject: [PATCH] Hint for #1177 --- plugins/nextcloud/js/webdav.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/nextcloud/js/webdav.js b/plugins/nextcloud/js/webdav.js index c146bda3d..24aa1f226 100644 --- a/plugins/nextcloud/js/webdav.js +++ b/plugins/nextcloud/js/webdav.js @@ -113,6 +113,8 @@ const } elemList.push(elem); } + // https://github.com/the-djmaze/snappymail/issues/1177 +// elemList.sort((a, b) => a.isFile != b.isFile ? (a.isFile ? 1 : -1) : a.name.localeCompare(b.name)); return Promise.resolve(elemList); }); }, @@ -286,7 +288,7 @@ class NextcloudFilesPopupView extends rl.pluginPopupView { } }); } - + // Happens after showModal() beforeShow(files, fResolve) { this.select = ''; @@ -497,4 +499,4 @@ function getElementsInNamespaces(xmlDocument, tagName) { } } return results; -} \ No newline at end of file +}