From eae4e02a0df8f64a46a2e1e6acd0677dd7f9f55d Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Mon, 3 Apr 2023 21:35:10 +0200 Subject: [PATCH] Add sort list service to Shopping List (#26839) --- source/_integrations/shopping_list.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/_integrations/shopping_list.markdown b/source/_integrations/shopping_list.markdown index 0873762b872..f5e2926cc89 100644 --- a/source/_integrations/shopping_list.markdown +++ b/source/_integrations/shopping_list.markdown @@ -65,6 +65,14 @@ Mark all items as incomplete in the shopping list. Clear completed items from the shopping list. +### Service `shopping_list.sort` + +Sort all items by name in the shopping list. + +| Service data attribute | Optional | Description | +|------------------------|----------|---------------------------------------------------------------------| +| `reverse` | yes | Whether to sort in reverse (_descending_) order. (default: `False`) | + ## Using in Automations 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.