Split entries in columns I'm trying to build a feed of entries in a column grid. Something like that:

&lt;div class="column"&gt;
 &lt;a class="entry"&gt;First entry&lt;/a&gt;
 &lt;a class="entry"&gt;Fourth entry&lt;/a&gt;
&lt;/div&gt;

&lt;div class="column"&gt;
 &lt;a class="entry"&gt;Second entry&lt;/a&gt;
 &lt;a class="entry"&gt;Fifth entry&lt;/a&gt;
&lt;/div&gt;

&lt;div class="column"&gt;
 &lt;a class="entry"&gt;Third entry&lt;/a&gt;
 &lt;a class="entry"&gt;Sixth entry&lt;/a&gt;
&lt;/div&gt;


How do I achieve that? In my head .batch(3) only works horizontally for rows.

Edit: To make it more clearly, that's my goal and the reason for columns instead of rows:
There's no easy twig function available to do this, but the code from this answer should be able to help you.

{% set columns = 3 %}
{% for entry in entries %}
    {% if loop.first or loop.index0 is divisibleby(columns) %}
        &lt;tr&gt;
    {% endif %}

    &lt;td&gt;{{ entry.title }}&lt;/td&gt;

    {% if loop.last and loop.index is not divisibleby(columns) %}
        {% for n in range(low=columns - (loop.index % columns), high=1, step=-1) %}
            &lt;td&gt;&amp;nbsp;&lt;/td&gt;
        {% endfor %}
    {% endif %}

    {% if loop.last or loop.index is divisibleby(columns) %}
        &lt;/tr&gt;
    {% endif %}
{% endfor %}