diff --git a/lib/presentation/widgets/player_selection.dart b/lib/presentation/widgets/player_selection.dart index d48e241..8007d39 100644 --- a/lib/presentation/widgets/player_selection.dart +++ b/lib/presentation/widgets/player_selection.dart @@ -55,8 +55,9 @@ class _PlayerSelectionState extends State { setState(() { // If a list of available players is provided, use that list. if (widget.availablePlayers.isNotEmpty) { + widget.availablePlayers.sort((a, b) => a.name.compareTo(b.name)); allPlayers = [...widget.availablePlayers]; - suggestedPlayers = [...widget.availablePlayers]; + suggestedPlayers = [...allPlayers]; if (widget.initialSelectedPlayers != null) { // Ensures that only players available for selection are pre-selected.