Sort Topics list by latest message reply
I'm looking for some help/advice on sorting
I've got a custom component that displays the topics for any given forum board and I'm trying to work out how to sort the topics in order of the most recent reply to any of the topics.
So if a topic from a couple of weeks ago gets a new reply it should then appear at the top of the topics list.
At the moment, the topics list is being generated with the following:
<#assign msgList = restadmin("/boards/id/${coreNode.id}/topics?restapi.format_detail=full_list_element&restapi.response_style=view&page_size=${page_size}&page=${page_number}").node_message_context />
..and is being displayed with:
<#list msgList.message as msg>
topic goes here
</list>
I've had a look through the developer community and found some references to a "sort_by" parameter but it seems to only work with search queries to the API.
Is there a parameter I can add to the "restadmin" call to sort the topics by the date/time of the most recent reply?
Thanks
Nathan