sort direction comments

modules_

Joined: 2005-01-12
Posts: 63
Posted: Sat, 2005-01-22 22:20

Hello,

how can i change sort direction of comments?

Searched a bit in /modules/comment/* but
could not find something.

Regards, Tobias.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2005-01-24 10:46

Search for "GalleryCommentHelper::fetchComments" in modules/comment -- change the argument from ORDER_ASCENDING to ORDER_DESCENDING or vice versa as appropriate.

 
blitz boy

Joined: 2006-01-03
Posts: 10
Posted: Tue, 2006-01-03 23:40

That doesn't work actually. Does someone know how to change comment sorting to descending?

Thanks.

 
DBoon

Joined: 2006-05-18
Posts: 1
Posted: Thu, 2006-05-18 13:49

Actually. It does work. I changed both the ShowComments.inc and the Callbacks.inc files under modules/comment and changed GalleryCommentHelper::fetchComments to ORDER_ASCENDING and it worked. Hope this helps.