updated MainController to order by created_at desc
changing the order of posts in PostController