Nested bogus folders + back button

This commit is contained in:
Cohee
2023-11-11 14:53:08 +02:00
parent 5331b5dc8a
commit 303026e01f
5 changed files with 141 additions and 43 deletions

View File

@ -1649,7 +1649,17 @@ function sortEntitiesList(entities) {
return;
}
entities.sort((a, b) => sortFunc(a.item, b.item));
entities.sort((a, b) => {
if (a.type === 'tag' && b.type !== 'tag') {
return -1;
}
if (a.type !== 'tag' && b.type === 'tag') {
return 1;
}
return sortFunc(a.item, b.item);
});
}
async function saveTheme() {