_sort

Sorting search results

We can sort results by search parameters or dot expressions.

GET /Organization?_sort=name

You can sort by multiple parameters:

GET /Organization?_sort=name,id

Sorting direction

You can change sorting direction by prefixing parameter with - sign

GET /Organization?_sort=-name

_id & _lastUpdat

You can use _id and _lastUpdated parameters:

GET /Organization?_sort=_id
GET /Organization?_sort=-lastUpdated

. expressions

Dot expressions can be used in sorting:

GET /Patient?_sort=.name.0.family