From 6bc1545311b58143b93da235c4cb038672b2d4e9 Mon Sep 17 00:00:00 2001 From: shadowgate15 Date: Wed, 18 Mar 2020 13:35:52 -0500 Subject: [PATCH] fixed sorting issues --- nextaction.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nextaction.py b/nextaction.py index 9cf5ef1..69a3571 100755 --- a/nextaction.py +++ b/nextaction.py @@ -131,7 +131,8 @@ def main(): logging.debug('Project \'%s\' being processed as %s', project['name'], project_type) # Get all items for the project - items = api.items.all(lambda x: x['project_id'] == project['id']) + items = sorted(api.items.all(lambda x: x['project_id'] == project['id']), + key=lambda x: x['child_order']) first_found = False