Sorting

Sort field and sort order can be specified by order query parameter. It should be an array of json objects with properties direction and fields.

[GET] /...?order=[{"direction":"asc|desc","fields":["field_one","field_two","field_N"]}]


Example:

[GET] http://<your-project-id>/rest/posts?order=[{"direction":"desc","fields":["created_at"]},{"direction":"asc","fields":["title"]}