{% from "card.html" import render_card with context %}
{% if _plugins.searchsortfilter.sort %} {% for fiche in data|localesort( attribute=_plugins.searchsortfilter.sort[0].key, reverse=_plugins.searchsortfilter.sort[0].reverse, ) %} {{ render_card(fiche) }} {% endfor %} {% else %} {% for fiche in data %} {{ render_card(fiche) }} {% endfor %} {% endif %}