Group by Field in Matrix Field Is it possible to group by a field within a matrix field.
I have a channel of players which holds their details.
I have a structure for teams which includes a matrix field for a Player.

The Player matrix has 2 fields:

1 - Position (Drop down with: Goalkeeper, Defender, Midfielder)

2 - Entries field linked to Players Channel.

When accessing the matrix is it possible to Group the blocks by the Position field?
You should be able to do this with Craft's handy group filter.

{% set players = entry.myPlayersMatrix %}
{% set playersGrouped = players|group('myPositionDropdown.label') %}

{% for position, playersInPosition in playersGrouped %}
    &lt;h2&gt;{{ position }}&lt;/h2&gt;
    &lt;ul&gt;
    {% for player in playersInPosition %}
        {% set playerData = craft.entries.section('myPlayersChannel').relatedTo(player).first() %}
        &lt;li&gt;
            {{ playerData.fullName }}
            {{ playerData.age }}
            ...
        &lt;/li&gt;
    {% endfor %}
    &lt;/ul&gt;
{% endfor %}