Skip to content

Commit

Permalink
Sort fund search results by project count in descending order
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Feb 24, 2025
1 parent 45b4a84 commit 2f7848e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/funds_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def index
end

def search
@funds = Fund.search(params[:query])
@funds = Fund.search(params[:query]).order('projects_count DESC')
@pagy, @funds = pagy(@funds)
end

Expand Down

0 comments on commit 2f7848e

Please sign in to comment.