From 92de25b241ceceff5c2f7a5ce68f3d59bcf619d9 Mon Sep 17 00:00:00 2001 From: JustinOros Date: Mon, 17 Nov 2025 12:28:48 -0700 Subject: [PATCH] Now sorting active projects by ID vs Name (Oldest first, newest last). --- stats-distributed-net.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stats-distributed-net.py b/stats-distributed-net.py index 90d4904..1718965 100644 --- a/stats-distributed-net.py +++ b/stats-distributed-net.py @@ -97,7 +97,7 @@ def get_projects(): if pid not in KNOWN: print(f"⚠️ New project detected on stats.distributed.net: ID={pid}, Name='{name}'") - return dict(sorted(projects.items(), key=lambda x: x[0])) + return dict(sorted(projects.items(), key=lambda x: int(x[0]))) def search_participant(project_id, search_term, debug=False): @@ -318,4 +318,3 @@ if __name__ == "__main__": except Exception as e: print(f"\nUnexpected error: {e}") sys.exit(1) -