app/controllers/spotlight/exhibits_controller.rb in blacklight-spotlight-0.19.2 vs app/controllers/spotlight/exhibits_controller.rb in blacklight-spotlight-0.20.0
- old
+ new
@@ -6,10 +6,10 @@
include Blacklight::SearchHelper
load_and_authorize_resource
def index
- @published_exhibits = @exhibits.published.page(params[:page])
+ @published_exhibits = @exhibits.published.ordered_by_weight.page(params[:page])
@published_exhibits = @published_exhibits.tagged_with(params[:tag]) if params[:tag]
if @exhibits.one?
redirect_to @exhibits.first
else