import javax.persistence.TemporalType;
import javax.persistence.Transient;
import org.mxchange.jcontacts.model.contact.Contact;
+import org.mxchange.jcontacts.model.contact.Contacts;
import org.mxchange.jcontacts.model.contact.UserContact;
import org.mxchange.jcoreutils.Comparables;
import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
// Init comparitors
final int comparitors[] = {
// First contact
- this.getUserContact().compareTo(user.getUserContact()),
+ Contacts.compare(this.getUserContact(), user.getUserContact()),
// ... then user name
this.getUserName().compareTo(user.getUserName())
};