diff --git a/app/templates/inventory/view_item.html b/app/templates/inventory/view_item.html index 97c0f1de604c0d579b31aab3950947bc93cb9cf2..c695846942fc253d5d9feff5a01fc2abb3bfa575 100644 --- a/app/templates/inventory/view_item.html +++ b/app/templates/inventory/view_item.html @@ -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) }}