Skip to content

Commit

Permalink
Sort alphabetically the recovered feeds
Browse files Browse the repository at this point in the history
Having feed sorted by names rather than by folder ID would be more user
friendly.
Follow-up of PR ViennaRSS#1754, working on issue ViennaRSS#1768
  • Loading branch information
barijaona committed Jul 28, 2024
1 parent f1801cf commit 88e191f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Vienna/Sources/Main window/FoldersTree.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 88e191f

Please sign in to comment.