summaryrefslogtreecommitdiff
path: root/app/models/forumthread.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/forumthread.rb')
-rw-r--r--app/models/forumthread.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/forumthread.rb b/app/models/forumthread.rb
index f8efe97..fd8d3c1 100644
--- a/app/models/forumthread.rb
+++ b/app/models/forumthread.rb
@@ -106,7 +106,7 @@ class Forumthread < ActiveRecord::Base
if order_phrase.present?
threads = threads.order("GREATEST(relevance, reply_rel) DESC")
else
- threads = threads.order("sticky desc", "threadreplies.created_at DESC", "forumthreads.created_at DESC")
+ threads = threads.order("sticky DESC", "threadreplies.id DESC", "forumthreads.id DESC")
end
threads
end