create self.order_by_time method for posts