Change order within grouped archive
Assuming the years are currently rendered in the correct (descending) order, an easy way to make sure the entries are rendered in ascending order would be to simply reverse the entriesInYear array, i.e.:

...

{% for entry in entriesInYear|reverse %}
    ...
{% endfor %}