Ordered the posts using Active Record