Skip to content

Commit eae4e02

Browse files
authored
Add sort list service to Shopping List (#26839)
1 parent 092a395 commit eae4e02

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/_integrations/shopping_list.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ Mark all items as incomplete in the shopping list.
6565

6666
Clear completed items from the shopping list.
6767

68+
### Service `shopping_list.sort`
69+
70+
Sort all items by name in the shopping list.
71+
72+
| Service data attribute | Optional | Description |
73+
|------------------------|----------|---------------------------------------------------------------------|
74+
| `reverse` | yes | Whether to sort in reverse (_descending_) order. (default: `False`) |
75+
6876
## Using in Automations
6977

7078
A `shopping_list_updated` event is triggered when items in the list are modified, with the following data payload attached to it. This can be used to trigger automations such as sending a push notification when someone adds an item to the shopping list, which when clicked, will open the list.

0 commit comments

Comments
 (0)