updated comareTo method in contactList