From c97550329298d3071081f38599cc718df3c8ef7a Mon Sep 17 00:00:00 2001 From: Leendert Bottelberghs Date: Fri, 13 Aug 2004 13:02:55 +0000 Subject: [PATCH] Thread ordering by date instead of postId. (In compliance with GUIDs) --- lib/WebGUI/Forum/Post.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Forum/Post.pm b/lib/WebGUI/Forum/Post.pm index dfe8c9f06..ff5f99ffa 100644 --- a/lib/WebGUI/Forum/Post.pm +++ b/lib/WebGUI/Forum/Post.pm @@ -183,7 +183,7 @@ sub getReplies { } else { $query .= "(status='approved'"; } - $query .= " or userId=".quote($session{user}{userId}).") order by forumPostId"; + $query .= " or userId=".quote($session{user}{userId}).") order by dateOfPost"; my $sth = WebGUI::SQL->read($query,WebGUI::SQL->getSlave); while (my @data = $sth->array) { push(@replies,WebGUI::Forum::Post->new($data[0]));