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

View File

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