mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-28 17:54:16 +08:00
Add ordering to global search results [SCI-6639] (#3960)
This commit is contained in:
parent
5d111d3350
commit
78a8b5d952
1 changed files with 1 additions and 0 deletions
|
@ -103,6 +103,7 @@ class SearchController < ApplicationController
|
|||
match_case: @search_case,
|
||||
whole_word: @search_whole_word,
|
||||
whole_phrase: @search_whole_phrase)
|
||||
.order(created_at: :desc)
|
||||
end
|
||||
|
||||
def count_by_name(model)
|
||||
|
|
Loading…
Reference in a new issue