From 51b98d548b406f2db201ba359dc6e805f0263ee9 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 15 Aug 2022 15:23:12 -0700 Subject: [PATCH] Ensure a deterministic order to project activity summaries --- crates/collab/src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/collab/src/db.rs b/crates/collab/src/db.rs index 98a8fc3a9b..eeb598413e 100644 --- a/crates/collab/src/db.rs +++ b/crates/collab/src/db.rs @@ -709,7 +709,7 @@ impl Db for PostgresDb { user_durations.user_id = project_durations.user_id AND user_durations.user_id = users.id AND project_durations.project_id = project_collaborators.project_id - ORDER BY total_duration DESC, user_id ASC + ORDER BY total_duration DESC, user_id ASC, project_id ASC "; let mut rows = sqlx::query_as::<_, (UserId, String, ProjectId, i64, i64)>(query)