diff --git a/solution/api/v1/user/views.py b/solution/api/v1/user/views.py index 6506de4..8ed9197 100644 --- a/solution/api/v1/user/views.py +++ b/solution/api/v1/user/views.py @@ -324,7 +324,7 @@ def list_comments( promocodes = promocodes.prefetch_related("comments", "comments__author") - comments = promocodes.first().comments.all() + comments = promocodes.first().comments.order_by("-date").all() response["X-Total-Count"] = len(comments)