Previously I ordered my posts as this:
@posts = Post.find(:all, :order => \"created_at DESC\")
But now I want to replace created_at
created_at
Just to expand on @Robbie's answer
Post.all.sort_by {|post| post.custom_method }.reverse