improve contact sorting at New Conversation, prefer names starting with letters
This commit is contained in:
parent
96e78e3ddc
commit
d98c1abb96
3 changed files with 24 additions and 7 deletions
|
|
@ -403,7 +403,7 @@ fun Context.getAvailableContacts(callback: (ArrayList<Contact>) -> Unit) {
|
|||
it.phoneNumber.substring(startIndex)
|
||||
}.toMutableList() as ArrayList<Contact>
|
||||
|
||||
allContacts.sortBy { it.name.normalizeString().toLowerCase(Locale.getDefault()) }
|
||||
allContacts.sort()
|
||||
callback(allContacts)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue