From 4a81d2d624e7b3b4603d2561ea548b806e27f7fb Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 4 Mar 2024 17:12:16 +0100 Subject: [PATCH] alphabetically order stat if same ranking --- src/model/stat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/stat.rs b/src/model/stat.rs index 7af471a..81b2a83 100644 --- a/src/model/stat.rs +++ b/src/model/stat.rs @@ -108,7 +108,7 @@ INNER JOIN rower r ON u.id = r.rower_id INNER JOIN logbook l ON r.logbook_id = l.id WHERE l.distance_in_km IS NOT NULL AND l.arrival LIKE '{year}-%' AND u.name != 'Externe Steuerperson' GROUP BY u.name -ORDER BY rowed_km DESC; +ORDER BY rowed_km DESC, u.name; " )) .fetch_all(db) -- 2.45.2