aggregating posts and sorting by timestamp working