Folders should not be sorted in the char list - Folders respect the chosen sorting of the "Tag Management" - They will still always be displayed on top - They will now not follow any chosen list sorting, so do not get changed based on alphabetical sorting of the char list

9264008766e571ee918788a522c81146a56acccb

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +4 -6Ignore whitespace
public/scripts/power-user.js+4 -6
@@ -2094,12 +2094,10 @@ export function sortEntitiesList(entities, forceSearch, filterHelper = null) {
20942094 }
20952095
20962096 entities.sort((a, b) => {
20972097 // Sort tags/folders will always be at the top. Their original sorting will be kept, to respect manual tag sorting.
20982098 if (a.type === 'tag' &&|| b.type !=== 'tag') {
2099- return -1;
2099+ // The one that is a tag will be at the top
2100- }
2100+ return (a.type === 'tag' ? -1 : 1) - (b.type === 'tag' ? -1 : 1);
2101- if (a.type !== 'tag' && b.type === 'tag') {
2102- return 1;
21032101 }
21042102
21052103 // If we have search sorting, we take scores and use those