We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Events

Past events and controlling their order


I'm wanting to show all the past events on a main events page. I can get all the past events to display but there's no way to control their order. At the moment they are displaying the earliest past event through to the most recent past event I would like them to be displayed with the most recent past event first and then the earliest posted past event.

My code for this is below but doesn't seem to be sorting them at all.



Peter Meenagh

Peter Meenagh 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support


'sort' => 'eventDateTime', 
'sort-order' => 'DESC',

That did it thanks Drew the lower case desc was the issue.