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 +}