Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Changing sort order in post_loop

Quote Reply
Changing sort order in post_loop
We're getting complaints that the responses to posts are appearing before the posts in our subscriber emails. Is there a way to reverse the order in the post_loop function so that posts are ordered by submission (oldest first, most recent last)?

Thanks,
Peter
forum.ergoweb.com
Quote Reply
Re: [budnick] Changing sort order in post_loop In reply to
You'll need to change admin/GForum/Subscribe.pm, around line 49, from:

Code:
$PostUser->select_options("ORDER BY post_time DESC");

to

Code:
$PostUser->select_options("ORDER BY post_time");

I'm not sure why this is descending in the first place, so I'll change it for the next release as well.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com