From 5d57f4bcb885236865126caec7ab3a74157e4aea Mon Sep 17 00:00:00 2001 From: Norwin Date: Wed, 17 Mar 2021 09:25:49 +0000 Subject: [PATCH] sort release attachments by name (#15008) Co-authored-by: zeripath Co-authored-by: Lunny Xiao Co-authored-by: Lauris BH --- models/release.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/release.go b/models/release.go index 960509a16c..751d08d4d8 100644 --- a/models/release.go +++ b/models/release.go @@ -282,7 +282,7 @@ func getReleaseAttachments(e Engine, rels ...*Release) (err error) { // Select attachments err = e. - Asc("release_id"). + Asc("release_id", "name"). In("release_id", sortedRels.ID). Find(&attachments, Attachment{}) if err != nil { -- 2.39.5