mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 23:53:15 +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
|
class SearchController < ApplicationController
|
||||||
def index
|
def index
|
||||||
@search_definition = PaperSearch.new(search_params)
|
@search_definition = PaperSearch.new(search_params)
|
||||||
@search_definition.sort_by ||= "score"
|
@search_definition.sort_by ||= "date"
|
||||||
|
|
||||||
execute_search
|
execute_search
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue