Unify how we sort SQM Categories

This commit is contained in:
Liam Morley 2021-10-26 15:05:30 -04:00
parent 934d0bda0e
commit 882fa84de9
8 changed files with 57 additions and 4 deletions

View file

@ -7,7 +7,7 @@ class DashboardController < SqmApplicationController
.sort
.reverse
@category_presenters = SqmCategory.all.map { |sqm_category| CategoryPresenter.new(category: sqm_category) }
@category_presenters = SqmCategory.sorted.map { |sqm_category| CategoryPresenter.new(category: sqm_category) }
end
private