aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2024-03-14 21:57:17 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2024-03-14 21:57:17 +0100
commit52565f713de6a0b3385ac2eb67e0aa4ff6fd8341 (patch)
treebdebfc1980667dd748ed5429269dd628cf0b361c /app/controllers/application_controller.rb
parent7288a8d7e0d6ae7ead5d3dc8ceccbd877ee7a309 (diff)
downloadoperum-52565f713de6a0b3385ac2eb67e0aa4ff6fd8341.tar.gz
operum-52565f713de6a0b3385ac2eb67e0aa4ff6fd8341.zip
Be more careful with the order
We usually want to show stuff ordered by name. Only `things` are the exception for this. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 2a63b66..fbe614c 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -17,6 +17,6 @@ class ApplicationController < ActionController::Base
end
def set_searches
- @searches = Search.all
+ @searches = Search.order(:name)
end
end