projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🔥 Remove another function from Sone interface
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
data
/
Sone.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/data/Sone.kt
b/src/main/kotlin/net/pterodactylus/sone/data/Sone.kt
index
c44d6e8
..
3f70ad7
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/data/Sone.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/data/Sone.kt
@@
-48,3
+48,6
@@
val postCountComparator: Comparator<Sone> =
comparing<Sone, Int> { it.posts.size }
.thenComparing<Int> { it.replies.size }
.reversed()
comparing<Sone, Int> { it.posts.size }
.thenComparing<Int> { it.replies.size }
.reversed()
+
+val imageCountComparator: Comparator<Sone> =
+ comparing<Sone, Int> { it.rootAlbum.allImages.size }.reversed()