Skip to content

Commit

Permalink
Secondarily sort by extension name instead of ID (#7866)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
maxdeviant authored Feb 15, 2024
1 parent 23132b5 commit bf1bcd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/collab/src/db/queries/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf1bcd0

Please sign in to comment.