Can i always show Default Address on the first of Addresses List?

If a user have 3 addresses and 1 is a default address. Can i show that Default address always at the first of the loop?

Hey @Benassie ,

Yes you can display default address on the first loop of customers list addresses.

you can use this code :-

{% for address in customer.addresses %}> {% if address == customer.default_address %}> {{ address | format_address }}> {% else %}> {{ address | format_address }}> {% endif %}> {% endfor %}