Refined the comments of method compare.