oops, confidence desc

This commit is contained in:
joshua stein 2012-07-10 11:52:36 -05:00
parent db10cd115f
commit b9c8f1d371

View file

@ -156,7 +156,7 @@ class Comment < ActiveRecord::Base
cs = [ "story_id = ?", story_id ]
end
Comment.find(:all, :conditions => cs, :order => "confidence",
Comment.find(:all, :conditions => cs, :order => "confidence DESC",
:include => :user).each do |c|
(parents[c.parent_comment_id.to_i] ||= []).push c
end