diff --git a/app/models/problem.rb b/app/models/problem.rb --- a/app/models/problem.rb +++ b/app/models/problem.rb @@ -37,7 +37,9 @@ end def self.find_available_problems - find(:all, :conditions => {:available => true}, :order => "date_added DESC") + find(:all, + :conditions => {:available => true}, + :order => "updated_at DESC") end # TODO: may try to optimize this using cache