Commit 2f0d897e815971eaf37222bd9c1873e074b60d8e

Authored by Stephen Crosby
2 parents 5f75f850 644116d8
Exists in master and in 1 other branch production

Merge pull request #924 from lucianosousa/sort-by-name

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 12 }
13 13  
14 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 18 expose(:app, ancestor: :app_scope, attributes: :app_params)
... ...