The API currently enables you to sort the results (when multiple are returned) using a querystring parameter on GET queries named sort. It currently supports one field at a time and you can make it ascending or descending.

Also, you can sort using any of the fields that are returned in the model typically. If you pass an invalid sort field, an error is not returned, the sort is just ignored. That may change in the future to become more strict as we expand its functionality.

Example

Sort notes by subject - oldest to newest

https://restapi.rev.io/v1/notes?sort=subject

If you wanted the opposite order, you can simply prepend a minus sign (-) before the field name and newest to oldest will be returned, as shown below:

https://restapi.rev.io/v1/notes?sort=-subject