Permalink
Browse files

Fixed ordering of recently updated on profile pages.

  • Loading branch information...
1 parent 47c7987 commit dcff8ccbe2767314cbcf290720f68f6f0d320f7c @zk zk committed Oct 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/user_controller.rb
View
2 app/controllers/user_controller.rb
@@ -22,6 +22,6 @@ def profile
return
end
- @recent = (@user.comments + @user.examples + @user.see_alsos)
+ @recent = (@user.comments + @user.examples + @user.see_alsos).sort{|a,b| b.updated_at <=> a.updated_at}
end
end

0 comments on commit dcff8cc

Please sign in to comment.