Title: [Plugin: JSON API] order_by argument
Last modified: August 19, 2016

---

# [Plugin: JSON API] order_by argument

 *  [svalerie](https://wordpress.org/support/users/svalerie/)
 * (@svalerie)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-json-api-order_by-argument/)
 * I’ve been going about this for a while, and re-reading the documentation, but
   can’t seem to crack it.
 * Trying to retrieve posts and order them by post titles, but the order_by argument
   doesn’t seem to have an effect (at least not how I’m doing it)
 * [http://example.com/?json=get_category_posts&category_id=4&order_by=title](http://example.com/?json=get_category_posts&category_id=4&order_by=title)
 * Any hints, tips very appreciated. (btw – order=asc, working like a charm, but
   have been trying other values for order_by and no joy so far).
 * Many thanks
 * [http://wordpress.org/extend/plugins/json-api/](http://wordpress.org/extend/plugins/json-api/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [sparklette](https://wordpress.org/support/users/sparklette/)
 * (@sparklette)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-json-api-order_by-argument/#post-1978075)
 * I have the exact problem too. Trying to sort posts by title to no avail. Any 
   solution would be greatly appreciated. Thanks.
 *  [theseanz](https://wordpress.org/support/users/theseanz/)
 * (@theseanz)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-json-api-order_by-argument/#post-1978133)
 * Just wanted to chime in and say I am having this issue, also. I’m about to dig
   into the code, but I’d rather not as my PHP skills are intermediate at best.
 *  [dougestey](https://wordpress.org/support/users/dougestey/)
 * (@dougestey)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-json-api-order_by-argument/#post-1978185)
 * I’m also having this issue.
 *  [rbarona](https://wordpress.org/support/users/rbarona/)
 * (@rbarona)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-json-api-order_by-argument/#post-1978186)
 * Hi!
 * I have the same problem, but I find the solution! 😉
 * The argument “order_by” is without “_”. It works “orderby”
 * [http://example.com/api/get_recent_posts/?dev=1&order=desc&orderby=title](http://example.com/api/get_recent_posts/?dev=1&order=desc&orderby=title)
 * Tried on your website and tell me if is working 😉

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: JSON API] order_by argument’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-api.svg)
 * [JSON API](https://wordpress.org/plugins/json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api/reviews/)

 * 4 replies
 * 5 participants
 * Last reply from: [rbarona](https://wordpress.org/support/users/rbarona/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-json-api-order_by-argument/#post-1978186)
 * Status: not resolved