]> cat aescling's git repositories - mastodon.git/commitdiff
Sort filters by “keyword or phrase” in Settings (#15050)
authorMélanie Chauvel <perso@hack-libre.org>
Tue, 27 Oct 2020 02:00:06 +0000 (03:00 +0100)
committerGitHub <noreply@github.com>
Tue, 27 Oct 2020 02:00:06 +0000 (03:00 +0100)
app/controllers/filters_controller.rb

index 63d9d9cd37244fe81d84db26b413f7040c4ec0ec..79a1ab02b1fb7fbe7b03a0bc3b5b3d30221f609a 100644 (file)
@@ -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