Reversed sorting
tmilovan
New
Right now, newest participated discussions are displayed last. It seems to me that it would make much more sense if sorting would be reversed.
1
Comments
Those discussions should be ordered by the date of the latest comment, newest first.
return $Sender->SQL->Select('d.*')to->Join('Comment c','d.DiscussionID = c.DiscussionID')
->Where('c.InsertUserID', $UserID)
->GroupBy('c.DiscussionID')
->Limit($Limit, $Offset)
->Get();
return $Sender->SQL->Select('d.*')->Join('Comment c','d.DiscussionID = c.DiscussionID')
->Where('c.InsertUserID', $UserID)
->GroupBy('c.DiscussionID')
->OrderBy('d.DateUpdated', 'DESC')
->Limit($Limit, $Offset)
->Get();
->OrderBy('d.DateLastComment', 'DESC')Rather than:->OrderBy('d.DateUpdated', 'DESC')to get the sorting order to show the latest activity in the discussion at the top. Just incase anyone else is interested in this.Allan
@theallan - thanks... without that amendment it shows them in the order that ANY change was last made (even an edit), not the same as the behaviour on the All Discussions tab.