Forum
Past events and controlling their order
Hi
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.
<?php
perch_events_custom(array(
'filter'=>'eventDateTime',
'match'=>'lt',
'value'=>date('Y-m-d'),
'count'=>90,
'sort'=>'eventDateTime',
'sort-order'=>'desc',
'template'=>'listing/custom-listing-day.html'
));
?>
Thanks
Try:
That did it thanks Drew the lower case desc was the issue.