about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorMélanie Chauvel <perso@hack-libre.org>2020-10-27 03:00:06 +0100
committerGitHub <noreply@github.com>2020-10-27 03:00:06 +0100
commit0a8ab822e26180522d9ae8896435aba26d8f0b96 (patch)
tree6de23dadf9d7ba73c85cdc18f33138dca6c2312a /app/controllers
parenta5afbb62d25306dc9d28fa8d0e85edf02c63d2a3 (diff)
Sort filters by “keyword or phrase” in Settings (#15050)
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/filters_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/filters_controller.rb b/app/controllers/filters_controller.rb
index 63d9d9cd3..79a1ab02b 100644
--- a/app/controllers/filters_controller.rb
+++ b/app/controllers/filters_controller.rb
@@ -9,7 +9,7 @@ class FiltersController < ApplicationController
   before_action :set_body_classes
 
   def index
-    @filters = current_account.custom_filters
+    @filters = current_account.custom_filters.order(:phrase)
   end
 
   def new