OK so the order that the events get displayed with that method is the order of assignment. So the first event assigned to that person will be the first event in the list and so on. I’m afraid there are no filters in the _get_rel_objects method to change the order_by or filter out expired events. So I can suggest building out your own method or function and include a custom query that changes the order_by to use the Event start date and filters out any events that start before today.
The reason you’re seeing SQL code there is the queries are all generated by the model system. Here’s a link to the documentation that shows how to use the Event Espresso 4 Model system to build queries:
The support post ‘Get events for person (by start date)’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.