From 7dac9f1ada5f2775e8ece934581f6feeae8efc22 Mon Sep 17 00:00:00 2001 From: Tom Chapman Date: Thu, 20 Jun 2024 10:40:47 -0700 Subject: [PATCH] order public/proponent comment export by id --- met-api/src/met_api/models/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/met-api/src/met_api/models/comment.py b/met-api/src/met_api/models/comment.py index 2aaac8022..a8b6cb5f9 100644 --- a/met-api/src/met_api/models/comment.py +++ b/met-api/src/met_api/models/comment.py @@ -250,6 +250,6 @@ def get_public_viewable_comments_by_survey_id(cls, survey_id): ReportSetting.display == true(), Submission.reviewed_by != 'System' )) - query = query.order_by(Comment.text.asc()) + query = query.order_by(Comment.id.asc()) items = query.all() return CommentSchema(many=True, only=['submission_id', 'label', 'text']).dump(items)