adds sorting to posts by create date