Skip to content

Commit afc5543

Browse files
committed
Sort NPCs by name
1 parent f398f03 commit afc5543

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/core/firebase/repositories/FirestoreCharacterRepository.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ class FirestoreCharacterRepository(
103103

104104
override fun inParty(partyId: PartyId, types: Set<CharacterType>): Flow<List<Character>> {
105105
return characters(partyId)
106+
.orderBy("name")
106107
.documents(mapper)
107108
.map { characters -> characters.filter { it.type in types && !it.isArchived } }
108109
}

0 commit comments

Comments
 (0)