Hello, I am working on a Jira Automation to get currently active projects (tasks) and their subtasks. The subtasks have a custom field called 'Actual Start' and a 'Due Date.' Due Date is simply a date, while Actual Start is a DateTime stamp for the scheduled start time of the item.
My JQL is:
Project = 'Environment Management' AND issuetype in (Task) AND status not in (Archived) ORDER BY DueDate ASC
The top-level tasks seem to sort in the expected output by DueDate, but the subtasks do not.:

Any idea how to get this to sort correctly?
NOTE: I understand that this is a bit of an unconventional use of Jira, but I am using it for tracking system upgrade/implementation timelines and automating the weekly report that goes out to stakeholders for tracking progress.