projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🎨 Rename “newest first” post comparator
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
data
/
Post.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/data/Post.kt
b/src/main/kotlin/net/pterodactylus/sone/data/Post.kt
index
955196a
..
d87bd3c
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/data/Post.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/data/Post.kt
@@
-12,5
+12,5
@@
val noFuturePost: (Post) -> Boolean = { it.time <= System.currentTimeMillis() }
/**
* Comparator that orders posts by their time, newest posts first.
*/
/**
* Comparator that orders posts by their time, newest posts first.
*/
-@get:JvmName("newestFirst")
-val newestFirst: Comparator<Post> = comparing(Post::getTime).reversed()
+@get:JvmName("newest
Post
First")
+val newest
Post
First: Comparator<Post> = comparing(Post::getTime).reversed()