Add ordering to global search results [SCI-6639] (#3960)

This commit is contained in:
Alex Kriuchykhin 2022-03-28 09:56:39 +02:00 committed by GitHub
parent 5d111d3350
commit 78a8b5d952
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,6 +103,7 @@ class SearchController < ApplicationController
match_case: @search_case, match_case: @search_case,
whole_word: @search_whole_word, whole_word: @search_whole_word,
whole_phrase: @search_whole_phrase) whole_phrase: @search_whole_phrase)
.order(created_at: :desc)
end end
def count_by_name(model) def count_by_name(model)