Deprecated as of version 2025-09-03This page describes the API for versions up to and including
2022-06-28. In the new 2025-09-03 version, the concepts of databases and data sources were split up, as described in Upgrading to 2025-09-03.Refer to the new page instead:ascending (i.e. direction).
Here is an example of a sort on a database property.
Sort object
Property value sort
This sort orders the database query by a particular property. The sort object must contain the following properties:| Property | Type | Description | Example value |
|---|---|---|---|
property | string | The name of the property to sort against. | "Ingredients" |
direction | string (enum) | The direction to sort. Possible values include "ascending" and "descending". | "descending" |
Entry timestamp sort
This sort orders the database query by the timestamp associated with a database entry. The sort object must contain the following properties:| Property | Type | Description | Example value |
|---|---|---|---|
timestamp | string (enum) | The name of the timestamp to sort against. Possible values include "created_time" and "last_edited_time". | "last_edited_time" |
direction | string (enum) | The direction to sort. Possible values include "ascending" and "descending". | "descending" |