kyungjunleeme commented on code in PR #53804:
URL: https://github.com/apache/airflow/pull/53804#discussion_r2237885018


##########
airflow-core/src/airflow/ui/src/pages/TaskInstances/TaskInstances.tsx:
##########
@@ -188,7 +188,7 @@ export const TaskInstances = () => {
   const { setTableURLState, tableURLState } = useTableURLState();
   const { pagination, sorting } = tableURLState;
   const [sort] = sorting;
-  const orderBy = sort ? [`${sort.desc ? "-" : ""}${sort.id}`] : 
["-start_date"];
+  const orderBy = sort ? [`${sort.desc ? "-" : ""}${sort.id}`] : 
["-map_index", "-start_date"];

Review Comment:
   Thanks for the feedback!
   You’re right — I initially used orderBy: ["-map_index", "-start_date"], 
which could lead to the interleaving issue you mentioned.
   I’ll update the order to ["-start_date", "-map_index"] so that tasks are 
sorted by execution time first, and then by map index within the same start 
time.



-- 
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