diff --git a/frontend/src/pages/TestsPage.tsx b/frontend/src/pages/TestsPage.tsx index 805bfbd..3b6390e 100644 --- a/frontend/src/pages/TestsPage.tsx +++ b/frontend/src/pages/TestsPage.tsx @@ -231,13 +231,14 @@ export default function TestsPage() { const aIsBlue = a.state === "blue_evaluating"; const bIsBlue = b.state === "blue_evaluating"; if (aIsBlue && bIsBlue) { - av = a.updated_at || ""; - bv = b.updated_at || ""; + // Older blue_started_at = waited longer = sort first in asc + av = (a as any).blue_started_at || a.created_at || ""; + bv = (b as any).blue_started_at || b.created_at || ""; } else { if (aIsBlue && !bIsBlue) return sortDir === "asc" ? -1 : 1; if (!aIsBlue && bIsBlue) return sortDir === "asc" ? 1 : -1; - av = a.updated_at || ""; - bv = b.updated_at || ""; + av = (a as any).blue_started_at || a.created_at || ""; + bv = (b as any).blue_started_at || b.created_at || ""; } break; } @@ -579,11 +580,11 @@ export default function TestsPage() {