Sort database entries
ascending
(i.e. direction).{
"sorts": [
{
"property": "Name",
"direction": "ascending"
}
]
}
{
"sorts": [
{
"property": "Food group",
"direction": "descending"
},
{
"property": "Name",
"direction": "ascending"
}
]
}
Sort object
Property value sort
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
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" |