~singpolyma/cheogram-android

ea7a35d86a3c907d68cd4c791f2631f164eb335b — Stephen Paul Weber 11 months ago 1497227
Sort by JID if display names are equal
1 files changed, 4 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/entities/Contact.java
M src/main/java/eu/siacs/conversations/entities/Contact.java => src/main/java/eu/siacs/conversations/entities/Contact.java +4 -0
@@ 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());
    }