Skip to content

Commit

Permalink
Reorder companies in level view by name
Browse files Browse the repository at this point in the history
  • Loading branch information
mountolive committed Jan 20, 2025
1 parent 2ef13e7 commit bcf2194
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodejs v14.0.0
ruby 3.0.0
yarn 1.21.0
4 changes: 2 additions & 2 deletions app/controllers/tpi/sectors_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ def fetch_companies

def companies_scope(params)
if params[:id]
TPISector.tpi_tool.friendly.find(params[:id]).companies.published.active
TPISector.tpi_tool.friendly.find(params[:id]).companies.published.active.order(name: :asc)
else
Company.published.active
Company.published.active.order(name: :asc)
end
end

Expand Down

0 comments on commit bcf2194

Please sign in to comment.