Order the talks by their rating instead of title

This commit is contained in:
Petko Bordjukov 2016-10-06 23:21:16 +03:00
parent eff79dab63
commit 7ac23f8797
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
class ConflictsController < ApplicationController class ConflictsController < ApplicationController
def index def index
@talks = Talk.find(:all, from: :halfnarp_friendly).sort_by(&:title) @talks = Talk.ordered_by_rating
end end
end end