Links

_sort

Sorting search results

Supported search parameters types

  • string
  • uri
  • number
  • reference
  • date
  • token
  • quantity
  • _id
  • ___lastUpdated
  • _createdAt
  • _score
Aidbox also supports sorting with jsonb dot expressions.
You can sort by multiple parameters:
GET /Organization?_sort=name,id

Sorting direction

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

Language to sort

_sort can be used along with _search-language search parameter.

Examples

GET /Organization?_sort=_id
GET /Organization?_sort=-lastUpdated
// . expression
GET /Patient?_sort=.name.0.family
Last modified 5mo ago