diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/quotes_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/quotes_controller.rb b/app/controllers/quotes_controller.rb index 6fa03f2..af1cfcc 100644 --- a/app/controllers/quotes_controller.rb +++ b/app/controllers/quotes_controller.rb | |||
@@ -19,7 +19,7 @@ class QuotesController < ApplicationController | |||
19 | end | 19 | end |
20 | 20 | ||
21 | def top | 21 | def top |
22 | @quotes = Quote.published.order(Arel.sql("(upvotes - downvotes) DESC")).paginate(page: params[:page], per_page: 10) | 22 | @quotes = Quote.published.order(Arel.sql("(upvotes - downvotes) DESC, id ASC")).paginate(page: params[:page], per_page: 10) |
23 | 23 | ||
24 | respond_to do |format| | 24 | respond_to do |format| |
25 | format.html { render :list } | 25 | format.html { render :list } |