update the query order of post and comment