update CompareTo methid in vilager