From 73b11ce18c9fbfebd715cffb1878e50bd7ec859e Mon Sep 17 00:00:00 2001 From: to7for <31083461+chablino@users.noreply.github.com> Date: Mon, 23 Mar 2026 21:21:26 +0800 Subject: [PATCH] Update agents/s07_task_system.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- agents/s07_task_system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agents/s07_task_system.py b/agents/s07_task_system.py index 9f57661..8b4e7ac 100644 --- a/agents/s07_task_system.py +++ b/agents/s07_task_system.py @@ -112,8 +112,8 @@ class TaskManager: def list_all(self) -> str: tasks = [] - files = sorted( - self.dir.glob("task_*.json"), + files = sorted( + self.dir.glob("task_*.json"), key=lambda f: int(f.stem.split("_")[-1]) ) for f in files: