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


##########
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:
   <img width="702" height="1228" alt="image" 
src="https://github.com/user-attachments/assets/8109f602-8424-46fe-aa43-35a18b9297a1";
 />
   
   When I tested sorting the mapped tasks with different start_date values,
   adding run_after as a sorting key worked exactly as I intended.
   
   It ensured a descending order within each start_date group,
   and also descending order across different start_date values.



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