I sort this list to get the smallest occurrence of...
# announcements
f
I sort this list to get the smallest occurrence of a property. Is there a simpler way in Kotlin?
Copy code
val sortedArticles = cachedArticles.sortedBy { article ->
    article.updatedAt
}
val oldestTimestamp = sortedArticles.firstOrNull()?.updatedAt
f
perfect, thank you very much
m
f
thank you 👍