commit | 0b2aa3b52b97a6edeeb4a9b6b5d21a5b7df2ace2 | [log] [tgz] |
---|---|---|
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Mon Jun 06 09:42:35 2022 +0200 |
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Mon Jun 06 09:42:35 2022 +0200 |
tree | 21fed7968a2cca6284888a42dbd653556b1308c1 | |
parent | ef313f51eedac844078157b24da3fcce059ccf11 [diff] |
KB66 Post: Order comments by date ascending rather than descending. Change-Id: If3205486b9a2acbc5578479395237f2d41be0c40
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 Collection<LazychatMessage> referrers; @ManyToMany(mappedBy = "referees") - @OrderBy("date DESC") + @OrderBy("date ASC") @Where(clause = "scope = 'comment'") @JsonbTransient public Collection<LazychatMessage> comments;