feat(greader): sort categories alphabetically during sync (#700)

Signed-off-by: Mark Bestavros <markbest@bu.edu>
This commit is contained in:
Mark Bestavros 2024-05-31 03:16:50 -04:00 committed by GitHub
parent a1e4383441
commit 4b42d2ed38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()!!)