mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 08:17:04 +05:30
android: reverse saved posts sorting order
This commit is contained in:
parent
f3df353109
commit
4e261af246
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ fun DatabasePosts(
|
|||
postActions: PostActions,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
val sorted = items.sortedBy { post -> post.createdAt.asZonedDateTime() }
|
||||
val sorted = items.sortedByDescending { post -> post.createdAt.asZonedDateTime() }
|
||||
val grouped = sorted.groupBy { post -> post.createdAt.asZonedDateTime().month }
|
||||
LazyColumn(
|
||||
state = listState,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue