Use the same sorting everywhere

This commit is contained in:
Maximilian Grundke
2017-07-12 21:46:39 +02:00
parent 0fabed4c1e
commit 7ba245920c
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ class ErrorTemplateAttributesController < ApplicationController
# GET /error_template_attributes
# GET /error_template_attributes.json
def index
@error_template_attributes = ErrorTemplateAttribute.all.order(:id).paginate(page: params[:page])
@error_template_attributes = ErrorTemplateAttribute.all.order('important DESC', :key, :id).paginate(page: params[:page])
authorize!
end