summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-06-06 09:42:35 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-06-06 09:42:35 +0200
commit0b2aa3b52b97a6edeeb4a9b6b5d21a5b7df2ace2 (patch)
tree21fed7968a2cca6284888a42dbd653556b1308c1 /src/main
parentef313f51eedac844078157b24da3fcce059ccf11 (diff)
KB66 Post: Order comments by date ascending rather than descending.
Change-Id: If3205486b9a2acbc5578479395237f2d41be0c40
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java
index 1ddffa8..c2f3dbc 100644
--- a/src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java
+++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java
@@ -116,7 +116,7 @@ public abstract class Post<Text extends PostText<?>> extends PanacheEntityBase {
public Collection<LazychatMessage> referrers;
@ManyToMany(mappedBy = "referees")
- @OrderBy("date DESC")
+ @OrderBy("date ASC")
@Where(clause = "scope = 'comment'")
@JsonbTransient
public Collection<LazychatMessage> comments;