cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Esteemed Contributor

Is there a SORT / ORDER BY clause in API V1?

The ORDER BY clause in V2 is limited in scope and cannot be used to ORDER BY message.subject, or author.login, which we want to. Does the API V1 have a sorting capability? I'm unable to determine. Thanks!

2 Replies 2
Highlighted
Honored Contributor

@IanAtJMP 

I do not think so mentioned field can be used in a sortBy clause. But these links may help you find a clue. 
https://community.khoros.com/t5/Developer-Discussion/Online-users-API-call-what-order-are-these-resu...

https://community.khoros.com/t5/Developer-Discussion/Sort-labels-from-restapi/m-p/457786#M14168

Give kudos if you find my posts helpful or mark solution if it answers your query
Esteemed Contributor

Thanks @VikasB  ... however, I can't seem to demystify the proper order and magic words in the API V1. This, for example, doesn't work. What's the proper way to get this and what's the theory behind it? Thanks~!

/restapi/v1/boards/id/discussions/threads/sort_by/author/login/order/descending

/restapi/v1/boards/id/discussions/threads/sort_by/subject/descending

/restapi/v1/boards/id/discussions/threads/sort_by/post_time/order/descending

Also, number of replies ...