final int comparitors[] = {
// First contact
ContactUtils.compare(this.getUserContact(), user.getUserContact()),
- // ... then user name
- this.getUserName().compareTo(user.getUserName())
+ // ... then user name (case-insensitive)
+ this.getUserName().compareToIgnoreCase(user.getUserName()),
+ // ... account status
+ this.getUserAccountStatus().compareTo(user.getUserAccountStatus()),
+ // ... profile mode
+ this.getUserProfileMode().compareTo(user.getUserProfileMode()),
+ // ... "must change password" flag
+ this.getUserMustChangePassword().compareTo(user.getUserMustChangePassword()),
+ // ... confirm key
+ this.getUserConfirmKey().compareTo(user.getUserConfirmKey())
};
// Check all values