From 7ac23f8797d87443f8cf8466eb87d0a4bfa3ac43 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Thu, 6 Oct 2016 23:21:16 +0300 Subject: [PATCH] Order the talks by their rating instead of title --- app/controllers/conflicts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/conflicts_controller.rb b/app/controllers/conflicts_controller.rb index c76ca33..f6dfd82 100644 --- a/app/controllers/conflicts_controller.rb +++ b/app/controllers/conflicts_controller.rb @@ -1,5 +1,5 @@ class ConflictsController < ApplicationController def index - @talks = Talk.find(:all, from: :halfnarp_friendly).sort_by(&:title) + @talks = Talk.ordered_by_rating end end