Skip to content

Commit 920cb6d

Browse files
committed
shorten some contact name comparison code
1 parent c081fd1 commit 920cb6d

File tree

1 file changed

+2
-2
lines changed
  • app/src/main/kotlin/com/simplemobiletools/contacts/models

1 file changed

+2
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/models/Contact.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ data class Contact(val id: Int, var prefix: String, var firstName: String, var m
4545
-1
4646
} else {
4747
if (firstString.toLowerCase() == secondString.toLowerCase()) {
48-
getFullName().compareTo(other.getFullName())
48+
getFullName().compareTo(other.getFullName(), true)
4949
} else {
50-
firstString.toLowerCase().compareTo(secondString.toLowerCase())
50+
firstString.compareTo(secondString, true)
5151
}
5252
}
5353
}

0 commit comments

Comments
 (0)