Skip to content

Commit

Permalink
Order search results by most seeders first
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiotapia committed Jan 18, 2024
1 parent 2d52f68 commit 4718140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/magnetissimo/torrents.ex
Expand Up @@ -286,7 +286,7 @@ defmodule Magnetissimo.Torrents do
query =
from(t in Torrent,
as: :torrent,
order_by: [desc: t.published_at],
order_by: [desc: t.seeders],
where: ^filter_where(filter_opts),
offset: ^offset,
limit: ^limit,
Expand Down

0 comments on commit 4718140

Please sign in to comment.