src/main/java/eu/siacs/conversations/entities/Contact.java 🔗
@@ -525,6 +525,10 @@ public class Contact implements ListItem, Blockable {
return 1;
}
+ if (getDisplayName().equals(another.getDisplayName())) {
+ return getJid().compareTo(another.getJid());
+ }
+
return this.getDisplayName().compareToIgnoreCase(
another.getDisplayName());
}