From 52565f713de6a0b3385ac2eb67e0aa4ff6fd8341 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 14 Mar 2024 21:57:17 +0100 Subject: Be more careful with the order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We usually want to show stuff ordered by name. Only `things` are the exception for this. Signed-off-by: Miquel Sabaté Solà --- app/controllers/shared_searches_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/shared_searches_controller.rb') diff --git a/app/controllers/shared_searches_controller.rb b/app/controllers/shared_searches_controller.rb index 3208e7c..066dd3e 100644 --- a/app/controllers/shared_searches_controller.rb +++ b/app/controllers/shared_searches_controller.rb @@ -4,7 +4,7 @@ class SharedSearchesController < ApplicationController skip_before_action :user_authenticated!, only: %i[show] def index - @searches = Search.where(shared: true) + @searches = Search.where(shared: true).order(:name) end def show -- cgit v1.2.3