From ca1a2c7b9e675fc5b204d166a3e769b3741a3122 Mon Sep 17 00:00:00 2001 From: Timebomb2018 <18868801967@163.com> Date: Tue, 7 Apr 2026 23:01:27 +0800 Subject: [PATCH] fix(workflow): Sorting of list operation nodes --- api/app/core/workflow/nodes/list_operator/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/core/workflow/nodes/list_operator/node.py b/api/app/core/workflow/nodes/list_operator/node.py index d0b30e92..245ad665 100644 --- a/api/app/core/workflow/nodes/list_operator/node.py +++ b/api/app/core/workflow/nodes/list_operator/node.py @@ -52,7 +52,7 @@ class ListOperatorNode(BaseNode): result = [result[idx]] # 3. Order - if cfg.order_by.enabled and cfg.order_by.key: + if cfg.order_by.enabled: reverse = cfg.order_by.value == "desc" key_fn = self._make_sort_key(cfg.order_by.key) result = sorted(result, key=key_fn, reverse=reverse)