{% for random_story in random_stories %}
{%- for category in random_story.categories|sort(attribute='id') -%} {{ category.name }} {%- endfor -%}
{{ random_story.summary_as_html|striptags|truncate(200) }}
{%- for character in random_story.characters|sort(attribute='id') -%} {%- endfor -%}