From 9ea5538e0d784c00a4ad25b4f4f0ced25f3168ee Mon Sep 17 00:00:00 2001 From: "ccooper%deadsquid.com" Date: Wed, 18 Apr 2007 03:34:46 +0000 Subject: [PATCH] - cascase sort by product_id and branch_id to give testers a fighting chance of finding the right test run when we have many of them in the future (hopefully) git-svn-id: svn://10.0.0.236/trunk@224678 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/litmus/Litmus/DB/TestRun.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/litmus/Litmus/DB/TestRun.pm b/mozilla/webtools/litmus/Litmus/DB/TestRun.pm index 900a1eed16d..e4ba9fc913e 100755 --- a/mozilla/webtools/litmus/Litmus/DB/TestRun.pm +++ b/mozilla/webtools/litmus/Litmus/DB/TestRun.pm @@ -272,9 +272,9 @@ sub getTestRuns() { } else { $where .= ' recommended=0'; } - $order_by = ' ORDER BY finish_timestamp ASC, test_run_id ASC'; + $order_by = ' ORDER BY finish_timestamp ASC, product_id ASC, branch_id ASC, test_run_id ASC'; } else { - $order_by = ' ORDER BY recommended DESC, finish_timestamp ASC, test_run_id ASC'; + $order_by = ' ORDER BY recommended DESC, finish_timestamp ASC, product_id ASC, branch_id ASC, test_run_id ASC'; } my $sql = $select . $where . $order_by;