Skip to content

Commit

Permalink
Switch skills_filter to more database oriented sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin481 committed May 24, 2024
1 parent 0538624 commit ddcb98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/domain/skills_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def scope
if title.present?
filtered_entries = filtered_entries.where('lower(skills.title) like lower(?)', "%#{title}%")
end
filtered_entries.sort_by { |s| s.title.downcase }
filtered_entries.order(:title)
end

private
Expand Down

0 comments on commit ddcb98e

Please sign in to comment.