Skip to content

Commit ce5c221

Browse files
committed
folders first
1 parent 104ecca commit ce5c221

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/static-webserver/client/source/class/osparc/file/FolderContent.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ qx.Class.define("osparc.file.FolderContent", {
144144
};
145145
datas.push(data);
146146
});
147+
// folders first
148+
datas.sort((a, b) => osparc.file.FilesTree.isFile(a.entry) - osparc.file.FilesTree.isFile(b.entry));
147149
const items = [];
148150
if (this.getMode() === "list") {
149151
datas.forEach(data => {

0 commit comments

Comments
 (0)