add function for comparing the time of posts