_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

Examples

GET /Organization?_sort=_id
GET /Organization?_sort=-lastUpdated
// . expression
GET /Patient?_sort=.name.0.family

Last updated

#2416:

Change request updated