Skip to main content
Pass a sorts array to Query a data source. The first sort takes priority. This example sorts by Food group in descending order, then by Name in ascending order within each group.

Sort object

Property value sort

This sort orders the data source query by a particular property. The sort object must contain the following properties:

Entry timestamp sort

This sort orders the data source query by the timestamp associated with a data source entry. The sort object must contain the following properties: