Skip to content
Snippets Groups Projects
Verified Commit 57acd45d authored by Torsten Grote's avatar Torsten Grote Committed by Mikolai Gütschow
Browse files

Fix blog feed sort order

parent 0d0d9364
No related branches found
No related tags found
1 merge request!355Blog post unread handling
......@@ -89,7 +89,7 @@ class FeedViewModel @Inject constructor(
private fun loadAllBlogPosts(txn: Transaction) {
val posts = blogManager.getBlogIds(txn).flatMap { g ->
loadBlogPosts(txn, g)
}.sortedDescending()
}.sorted()
txn.attach {
_posts.addAll(posts)
_isLoading.value = false
......@@ -109,7 +109,7 @@ class FeedViewModel @Inject constructor(
val item = getItem(txn, header)
txn.attach {
_posts.add(item)
_posts.sortDescending()
_posts.sort()
_isLoading.value = false
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment