Added Term freq for the posts, sorts the post depending on tf