XF 2.2 threads/{id}/posts sort order

kolakube

Well-known member
I am trying to return a page of posts using the threads/{id}/posts route with the order parameter set, but no matter what values I enter the list of posts returns in the default order.

Is my expectation that this route can return a list of posts by newest first, most reactions, and other methods correct? If so, what values does the order parameter accept? It seems like this would save me a lot of time instead of sorting the default posts list myself and want to make sure before I set out to do that.
 
The API only supports the same sorting options as the regular UI, which is to say it only accepts post_date for most thread types. The only exception is the question thread type, which allows for sorting by vote_score.
 
Top Bottom