X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FPost.kt;h=d87bd3c2e75518c3c0097928d95a4d8bb031ffec;hp=955196a0399325e7542c3c8eb337f8fc8d445c1e;hb=be005506d77e048c7de43f08771b072951ab82f9;hpb=9d47ddbac6b14aed85b09d482d3db9a17126d859 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 --- 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. */ -@get:JvmName("newestFirst") -val newestFirst: Comparator = comparing(Post::getTime).reversed() +@get:JvmName("newestPostFirst") +val newestPostFirst: Comparator = comparing(Post::getTime).reversed()