Skip to content

Commit

Permalink
feat(greader): sort categories alphabetically during sync (Ashinch#700)
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Bestavros <markbest@bu.edu>
  • Loading branch information
mbestavros authored May 31, 2024
1 parent a1e4383 commit 4b42d2e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ class GoogleReaderRssService @Inject constructor(
// 2. Fetch folder and subscription list
googleReaderAPI.getSubscriptionList()
.subscriptions.groupBy { it.categories?.first() }
.toSortedMap { c1, c2 -> c1?.label.toString().compareTo(c2?.label.toString()) }
.forEach { (category, feeds) ->
val groupId =
accountId.spacerDollar(category?.id?.ofCategoryStreamIdToId()!!)
Expand Down

0 comments on commit 4b42d2e

Please sign in to comment.