changed naming of variable at participants sorting

This commit is contained in:
2025-10-01 19:03:43 +02:00
parent 33dd6c4c69
commit a460d2b296

View File

@@ -14,8 +14,8 @@ class ParticipantsListView extends StatelessWidget {
final participants = participantsResponse.data
.sorted((a, b) {
final t = a.participantType.index.compareTo(b.participantType.index);
if (t != 0) return t;
final typeComparison = a.participantType.index.compareTo(b.participantType.index);
if (typeComparison != 0) return typeComparison;
return lastname(a).compareTo(lastname(b));
});
var groupedParticipants = participants.groupListsBy((participant) => participant.participantType);