From 88e191f47b1609d6745e16965ebb88f5a4d11089 Mon Sep 17 00:00:00 2001 From: Barijaona Ramaholimihaso Date: Sun, 21 Jul 2024 22:40:11 +0300 Subject: [PATCH] Sort alphabetically the recovered feeds Having feed sorted by names rather than by folder ID would be more user friendly. Follow-up of PR #1754, working on issue #1768 --- Vienna/Sources/Main window/FoldersTree.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Vienna/Sources/Main window/FoldersTree.m b/Vienna/Sources/Main window/FoldersTree.m index 426e7a5a43..bcf80abd6e 100644 --- a/Vienna/Sources/Main window/FoldersTree.m +++ b/Vienna/Sources/Main window/FoldersTree.m @@ -157,7 +157,8 @@ -(void)reloadDatabase:(NSArray *)stateArray [self.rootNode removeChildren]; if (![self loadTree:[[Database sharedManager] arrayOfFolders:VNAFolderTypeRoot] rootNode:self.rootNode]) { // recover from problems by putting missing folders under root node - NSArray *allFolders = [[Database sharedManager] arrayOfAllFolders]; // all RSS and group folders + NSArray *allFolders = [[[Database sharedManager] arrayOfAllFolders] + sortedArrayUsingSelector:@selector(folderNameCompare:)]; // all RSS and group folders NSArray *installedFolders = [self folders:0]; // RSS folders already present for (Folder *folder in allFolders) { if ((folder.type == VNAFolderTypeRSS || folder.type == VNAFolderTypeOpenReader)