tim-hampton opened a new issue, #72114:
URL: https://github.com/apache/airflow/issues/72114

   ### Description
   
   The ability to apply a sort order (alphabetical, alphanumeric, etc.) for 
tasks or nested TaskGroups contained in an outer TaskGroup, on the graph view 
of the dag.
   
   ### Use case/motivation
   
   I have a dag with 4 TaskGroups, each containing several nested TaskGroups 
which each contain a chain of tasks. I would like for these to display within 
the outer TaskGroup in alphabetical order so that it's easier to compare runs 
at a glance. I know that it currently sorts the nested TaskGroups in 
alphabetical order in the grid view, but that may just be a side-effect of the 
fact that the `list[Dict]` that the nested TaskGroups were created from were 
wrapped with the `sorted()` function when they were being assigned to their 
respective variables in my dag script.
   
   In my case, each of the nested TaskGroups contains the same number of 
chained tasks and none of the nested TaskGroups have any dependencies.
   
   An example of the structure:
   - Outer TaskGroup
   -- Inner TaskGroup_1
   --- tg_1_1 --> tg_1_2 --> tg_1_3 --> tg_1_4
   -- Inner TaskGroup_2
   --- tg_2_1 --> tg_2_2 --> tg_2_3 --> tg_2_4
   -- Inner TaskGroup_3
   --- tg_3_1 --> tg_3_2 --> tg_3_3 --> tg_3_4
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to