shorten some contact name comparison code
This commit is contained in:
parent
c081fd18bf
commit
920cb6d882
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue