sort release attachments by name (#15008)

Co-authored-by: zeripath <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
This commit is contained in:
Norwin
2021-03-17 11:25:49 +02:00
committed by GitHub
co-authored by zeripath Lunny Xiao Lauris BH
parent 51ea8dd444
commit 5d57f4bcb8
+1 -1
View File
@@ -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 {