I've got a list of entries grouped by year which is working correctly except that the months are being output in the the reverse order.
This code outputs the years in the correct order but the months in reverse order:
{# all entries sorted by year/month #}
{% set allEntries = craft.entries.section('photoblog').limit(null).order('postDate desc') %}
{% for year, entriesInYear in allEntries | group("postDate.year") %}
<div class="col-sm-3 col-xs-6" data-mh="years">
<h3>{{ year }}</h3>
<ul class="list-unstyled">
{% for month, entries in entriesInYear | group("postDate|date('F')" ) %}
<li><a href="/calendar/{{ year }}/{{ month|date('m') }}">{{ month }} ({{ entries|length }})</a></li>
{% endfor %}
</ul>
</div>
{% endfor %}
If I change the '''.order('postDate desc') to asc then the months are in the correct order but the years are reversed. is there a way to get it so that the years are descending but the months are ascending?
screenshot of current code results