Commit 644116d884df846f633ee0d213fab94138e80465

Authored by Luciano Sousa
1 parent 47085886
Exists in master and in 1 other branch production

sort apps by name

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/apps_controller.rb
@@ -12,7 +12,7 @@ class AppsController < ApplicationController @@ -12,7 +12,7 @@ class AppsController < ApplicationController
12 } 12 }
13 13
14 expose(:apps) { 14 expose(:apps) {
15 - app_scope.all.sort.map { |app| AppDecorator.new(app) } 15 + app_scope.asc(:name).map { |app| AppDecorator.new(app) }
16 } 16 }
17 17
18 expose(:app, ancestor: :app_scope, attributes: :app_params) 18 expose(:app, ancestor: :app_scope, attributes: :app_params)