Sort posts using timestamp