Skip to content

Commit

Permalink
Merge pull request #13163 from hennevogel/bugfix/remote-distroc
Browse files Browse the repository at this point in the history
Sort remote Distributions last
  • Loading branch information
hennevogel committed Oct 4, 2022
2 parents 022188c + cb44857 commit 6161511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/controllers/webui/distributions_controller.rb
Expand Up @@ -6,7 +6,7 @@ class Webui::DistributionsController < Webui::WebuiController
def new
authorize @project, :update?

@distributions = Distribution.all.group_by(&:vendor)
@distributions = Distribution.all.order(remote: :asc).order(version: :desc).group_by(&:vendor)
return if @distributions.present?

if User.admin_session?
Expand Down

0 comments on commit 6161511

Please sign in to comment.