projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🎨 Replace image count comparator with Kotlin version
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
pages
/
KnownSonesPage.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/pages/KnownSonesPage.kt
b/src/main/kotlin/net/pterodactylus/sone/web/pages/KnownSonesPage.kt
index
392dd93
..
01d1d22
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/pages/KnownSonesPage.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/pages/KnownSonesPage.kt
@@
-28,7
+28,7
@@
class KnownSonesPage @Inject constructor(webInterface: WebInterface, loaders: Lo
.filterNot { soneRequest.parameters["filter"] == "not-own" && it.isLocal }
.sortedWith(
when (soneRequest.parameters["sort"]) {
.filterNot { soneRequest.parameters["filter"] == "not-own" && it.isLocal }
.sortedWith(
when (soneRequest.parameters["sort"]) {
- "images" ->
Sone.IMAGE_COUNT_COMPARATOR
+ "images" ->
imageCountComparator
"name" -> niceNameComparator.reversed()
"posts" -> postCountComparator
else -> lastActivityComparator
"name" -> niceNameComparator.reversed()
"posts" -> postCountComparator
else -> lastActivityComparator