Skip to content

Commit 5c53440

Browse files
authored
Merge pull request #38 from jamiefdhurst/fix-path-name-check
fix: small fix for name/path comparison for subfolders
2 parents 7def97b + 8ccf884 commit 5c53440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class Inbox {
3030

3131
return folders
3232
.filter((folder) => folder.path !== settings.inboxFolder)
33-
.sort((a, b) => a.name.localeCompare(b.path));
33+
.sort((a, b) => a.path.localeCompare(b.path));
3434
}
3535

3636
getFoldersWithInbox(): TFolder[] {

0 commit comments

Comments
 (0)