shorten some contact name comparison code

This commit is contained in:
tibbi 2018-07-17 00:09:39 +02:00
parent c081fd18bf
commit 920cb6d882
1 changed files with 2 additions and 2 deletions

View File

@ -45,9 +45,9 @@ data class Contact(val id: Int, var prefix: String, var firstName: String, var m
-1
} else {
if (firstString.toLowerCase() == secondString.toLowerCase()) {
getFullName().compareTo(other.getFullName())
getFullName().compareTo(other.getFullName(), true)
} else {
firstString.toLowerCase().compareTo(secondString.toLowerCase())
firstString.compareTo(secondString, true)
}
}
}