Skip to content

Commit 8d49c6f

Browse files
committed
properly sort groups by title
1 parent 0137d71 commit 8d49c6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/MyViewPagerFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
170170
}
171171
}
172172

173-
storedGroups = storedGroups.asSequence().sortedWith(compareBy { it.title.normalizeString() }).toMutableList() as ArrayList<Group>
173+
storedGroups = storedGroups.asSequence().sortedWith(compareBy { it.title.toLowerCase().normalizeString() }).toMutableList() as ArrayList<Group>
174174

175175
fragment_placeholder_2.beVisibleIf(storedGroups.isEmpty())
176176
fragment_placeholder.beVisibleIf(storedGroups.isEmpty())

0 commit comments

Comments
 (0)