add compareTo method to ContactData