diff --git a/lib/gollum/frontend/app.rb b/lib/gollum/frontend/app.rb index 17e94deb..1d6d8b06 100644 --- a/lib/gollum/frontend/app.rb +++ b/lib/gollum/frontend/app.rb @@ -306,7 +306,7 @@ module Precious get '/search' do @query = params[:q] wiki = wiki_new - @results = wiki.search @query + @results = wiki.search(@query).sort_by{ |item| item[:count] }.reverse @name = @query mustache :search end