Khoros Atlas Logo

Highlighted
Respected Contributor
Respected 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
Honored Contributor
Honored Contributor

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

@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
Reply
Loading...
Respected Contributor
Respected Contributor

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

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 ...

0 Kudos
Reply
Loading...