Skip to content

Commit e11e9e2

Browse files
committed
fix(Tree): Sort folders correctly between each other
Signed-off-by: Marcel Klehr <[email protected]>
1 parent f206f24 commit e11e9e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui/views/native/Tree.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,10 @@ export default {
505505
if (item.url) {
506506
return new URL(item.url).hostname
507507
} else {
508-
return '0000000' // folders to the top
508+
return '0000000' + item.title.toLowerCase() // folders to the top
509509
}
510510
}
511-
return item.type === 'folder' ? '0000000' : item[this.sortBy].toLowerCase()
511+
return item.type === 'folder' ? '0000000' + item.title.toLowerCase() : item[this.sortBy].toLowerCase()
512512
}])
513513
} else {
514514
return items

0 commit comments

Comments
 (0)