improvement: Sort collections in the Ownership picker by name #225

This commit is contained in:
Artem Chepurnoy 2024-03-26 22:50:59 +02:00
parent 9d6a47318b
commit 221e63f01e
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
1 changed files with 1 additions and 0 deletions

View File

@ -262,6 +262,7 @@ fun organizationConfirmationState(
val collectionsFlow = getCollections()
.map { collections ->
collections
.sortedWith(StringComparatorIgnoreCase { it.name })
.map { collection ->
val enabled = collection.id !in args.blacklistedCollectionIds &&
!collection.readOnly