diff --git a/app/controllers/admin/triggers_controller.rb b/app/controllers/admin/triggers_controller.rb index dc2dbea6..d24c53ab 100644 --- a/app/controllers/admin/triggers_controller.rb +++ b/app/controllers/admin/triggers_controller.rb @@ -7,7 +7,9 @@ class TriggersController < AdminController before_action :set_trigger, only: %i[show edit update] def index - @triggers = Trigger.where('expires_at > ?', Time.current).or(Trigger.where(expires_at: nil)) + @triggers = Trigger.where('expires_at > ?', Time.current) + .or(Trigger.where(expires_at: nil)) + .order(description: :asc) end def show