Forum Discussion
VarunGrazitti
11 years agoBoss
sunny_mody - Yes, you can sort the topics using following snippet
<#assign topics = rest("/topics/style/forum/recent?restapi.response_style=view").messages /> <#list topics.message?sort_by(["last_edit_time"])?reverse as sorted_topics> ${sorted_topics.board_id} (${sorted_topics.last_edit_time.@view_date} ${sorted_topics.last_edit_time.@view_time})<br> </#list>
The code highlighted in blue would sort it for you. Let me know if this helps.
- RafaelC7 years agoKhoros Alumni (Retired)
A word of caution about the proposed solution in the code snippet above. Using that approach will lead to the performance issues since the sorting is being made programmatically and NOT via the API.
As far as I know, it is NOT currently possible to sort topics by last edit time either with REST API v1 or v2.
/rafa
- VarunGrazitti7 years agoBoss
RafaelC - :smileylol: I hope his community survived the snippet for last 4 years ;)
Related Content
- 5 years ago
- 5 months ago
- 11 years ago
- 12 years ago