mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
sort by date by default in web form
This commit is contained in:
parent
eef07c25b9
commit
cdc5fcedf5
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ end
|
|||
class SearchController < ApplicationController
|
||||
def index
|
||||
@search_definition = PaperSearch.new(search_params)
|
||||
@search_definition.sort_by ||= "score"
|
||||
@search_definition.sort_by ||= "date"
|
||||
|
||||
execute_search
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue