🎨 Replace image count comparator with Kotlin version
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / data / Sone.kt
index c44d6e8..3f70ad7 100644 (file)
@@ -48,3 +48,6 @@ val postCountComparator: Comparator<Sone> =
                comparing<Sone, Int> { it.posts.size }
                                .thenComparing<Int> { it.replies.size }
                                .reversed()
+
+val imageCountComparator: Comparator<Sone> =
+               comparing<Sone, Int> { it.rootAlbum.allImages.size }.reversed()