From bf1bcd027cfdd51e1d14a081bd80f4daf8b9fd29 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 15 Feb 2024 16:51:41 -0500 Subject: [PATCH] Secondarily sort by extension name instead of ID (#7866) This PR makes it so extensions are secondarily sorted by their name (instead of by ID) after we sort them by their download count. Release Notes: - N/A --- crates/collab/src/db/queries/extensions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/collab/src/db/queries/extensions.rs b/crates/collab/src/db/queries/extensions.rs index 78e80ea190..ba135a0bd5 100644 --- a/crates/collab/src/db/queries/extensions.rs +++ b/crates/collab/src/db/queries/extensions.rs @@ -16,7 +16,7 @@ impl Database { let extensions = extension::Entity::find() .filter(condition) .order_by_desc(extension::Column::TotalDownloadCount) - .order_by_asc(extension::Column::Id) + .order_by_asc(extension::Column::Name) .limit(Some(limit as u64)) .filter( extension::Column::LatestVersion