Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Order search results comments by creation time

  • Loading branch information...
commit 452a53fcd7976e3538b0da82f550ef8bb9a7ad2b 1 parent 3e25598
authored October 21, 2011

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  app/models/search_result.rb
1  app/models/search_result.rb
@@ -30,6 +30,7 @@ class SearchResult
30 30
   has_one :answer, :dependent => :destroy
31 31
   has_many :comments,
32 32
            :foreign_key => 'commentable_id',
  33
+           :order => 'created_at asc',
33 34
            :dependent => :destroy
34 35
   has_many :flags, :as => 'flaggeable', :dependent => :destroy
35 36
   has_many :notifications, :as => 'reason', :dependent => :destroy

0 notes on commit 452a53f

Please sign in to comment.
Something went wrong with that request. Please try again.