Implemented sorting post by date