From 69a1e58beb7df428c87d43e510a7afa89d6474a8 Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Sat, 18 Jul 2026 04:49:52 +0000 Subject: [PATCH] a2a-source-edit: write agent.py --- agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent.py b/agent.py index 43edf47..1d9c33f 100644 --- a/agent.py +++ b/agent.py @@ -344,7 +344,7 @@ def _build_comparison_result(comparison_id: str, quotes: list[QuoteInput], weigh } ) - rows.sort(key=lambda row: (-row["scores"]["weighted_total"], row["total_price"], row["delivery_days"], row["vendor"].lower())) + rows.sort(key=_quote_sort_key) winner = rows[0] recommendation = { "vendor": winner["vendor"],