projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🎨 Replace last activity 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
260f35b
..
439a163
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/pages/KnownSonesPage.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/pages/KnownSonesPage.kt
@@
-31,7
+31,7
@@
class KnownSonesPage @Inject constructor(webInterface: WebInterface, loaders: Lo
"images" -> Sone.IMAGE_COUNT_COMPARATOR
"name" -> niceNameComparator.reversed()
"posts" -> Sone.POST_COUNT_COMPARATOR
"images" -> Sone.IMAGE_COUNT_COMPARATOR
"name" -> niceNameComparator.reversed()
"posts" -> Sone.POST_COUNT_COMPARATOR
- else ->
Sone.LAST_ACTIVITY_COMPARATOR
+ else ->
lastActivityComparator
}.let { comparator ->
when (soneRequest.parameters["order"]) {
"asc" -> comparator.reversed()
}.let { comparator ->
when (soneRequest.parameters["order"]) {
"asc" -> comparator.reversed()