Skip to content
Snippets Groups Projects
Commit 308e7ce2 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Make sure item comments are sorted by date

parent f86f2c0d
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@
</dl>
<h4>Comments</h4>
{% for comment in item.comments %}
{% for comment in item.comments | sort(attribute='created_at') %}
<div class="card border-light mb-3">
<div class="card-header">
{{ comment.user }} commented on {{ format_datetime(comment.created_at) }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment