From 0b2aa3b52b97a6edeeb4a9b6b5d21a5b7df2ace2 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 6 Jun 2022 09:42:35 +0200 Subject: KB66 Post: Order comments by date ascending rather than descending. Change-Id: If3205486b9a2acbc5578479395237f2d41be0c40 --- src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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> extends PanacheEntityBase { public Collection referrers; @ManyToMany(mappedBy = "referees") - @OrderBy("date DESC") + @OrderBy("date ASC") @Where(clause = "scope = 'comment'") @JsonbTransient public Collection comments; -- cgit v1.2.3