{% for account_type in type_accounts %}
{% for account in type_accounts[account_type]|sort(attribute='last_four_digits') %} {% endfor %}
{% endfor %}