diff --git a/api/core/ops/langfuse_trace/langfuse_trace.py b/api/core/ops/langfuse_trace/langfuse_trace.py index 5b5d5def1b..0441475921 100644 --- a/api/core/ops/langfuse_trace/langfuse_trace.py +++ b/api/core/ops/langfuse_trace/langfuse_trace.py @@ -109,7 +109,6 @@ class LangFuseDataTrace(BaseTraceInstance): workflow_nodes_executions = ( db.session.query(WorkflowNodeExecution) .filter(WorkflowNodeExecution.workflow_run_id == trace_info.workflow_run_id) - .order_by(WorkflowNodeExecution.index.desc()) .all() ) diff --git a/api/core/ops/langsmith_trace/langsmith_trace.py b/api/core/ops/langsmith_trace/langsmith_trace.py index 0fee076d55..93d74cc9e3 100644 --- a/api/core/ops/langsmith_trace/langsmith_trace.py +++ b/api/core/ops/langsmith_trace/langsmith_trace.py @@ -102,7 +102,6 @@ class LangSmithDataTrace(BaseTraceInstance): workflow_nodes_executions = ( db.session.query(WorkflowNodeExecution) .filter(WorkflowNodeExecution.workflow_run_id == trace_info.workflow_run_id) - .order_by(WorkflowNodeExecution.index.desc()) .all() )