diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/fragments/MyViewPagerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/fragments/MyViewPagerFragment.kt index 85405c36..cb6fd847 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/fragments/MyViewPagerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/fragments/MyViewPagerFragment.kt @@ -163,6 +163,11 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet) it.phoneNumbers.any { it.value.contains(text, true) } || it.emails.any { it.value.contains(text, true) } } as ArrayList + + Contact.sorting = config.sorting + filtered.sort() + filtered.sortBy { !it.getFullName(startNameWithSurname).startsWith(text, true) } + updateItems(filtered) } }