Skip to content

Commit

Permalink
feat(greader): sort categories alphabetically during sync
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Bestavros <markbest@bu.edu>
  • Loading branch information
mbestavros committed May 21, 2024
1 parent 571840a commit 2205b6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class GoogleReaderRssService @Inject constructor(

// 2. Fetch folder and subscription list
googleReaderAPI.getSubscriptionList()
.subscriptions.groupBy { it.categories?.first() }
.subscriptions.sortedBy { it.categories?.sortedBy { it.label }?.first()?.label }.groupBy { it.categories?.first() }
.forEach { (category, feeds) ->
val groupId =
accountId.spacerDollar(category?.id?.ofCategoryStreamIdToId()!!)
Expand Down

0 comments on commit 2205b6e

Please sign in to comment.