Thread ordering by date instead of postId. (In compliance with GUIDs)

This commit is contained in:
Leendert Bottelberghs 2004-08-13 13:02:55 +00:00
parent 17b968a888
commit c975503292

View file

@ -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]));