_sort
Sorting search results
We can sort results by search parameters or dot expressions.
1
GET /Organization?_sort=name
Copied!
You can sort by multiple parameters:
1
GET /Organization?_sort=name,id
Copied!

Sorting direction

You can change the sorting direction by prefixing parameter with - sign
1
GET /Organization?_sort=-name
Copied!

_id & _lastUpdated

You can use _id and _lastUpdated parameters:
1
GET /Organization?_sort=_id
2
GET /Organization?_sort=-lastUpdated
Copied!

. expressions

Dot expressions can be used in sorting:
1
GET /Patient?_sort=.name.0.family
Copied!
Last modified 8mo ago