Support

Home Forums Event Espresso Premium API : How do I get events sorted by start date from the api?

API : How do I get events sorted by start date from the api?

Posted: October 8, 2013 at 8:37 pm


Nicolas Alberto

October 8, 2013 at 8:37 pm

Hi,
It looks like the api does not return the event sorted by start date.

It there a way to get that. Makes it pretty hard currently to list events by start date which is quite natual way of doing it.

Thanks in advance
Nic


Dean

October 9, 2013 at 2:58 am

Hi Nicholas,

As you say the API doesnt provide a sorting function, just outputs the requested data. It is up to you to take that data and manipulate it as needed.

If you are using PHP, then I could suggest something along the lines of http://docs.php.net/manual/en/function.array-multisort.php

The API is still a work in progress and we may add further functionality for sorting in the future. I will at least mark this down as a feature request for you.

The support post ‘API : How do I get events sorted by start date from the api?’ 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.

Event Espresso