Skip to content

Commit 5d57f4b

Browse files
noerwzeripathlunnylafriks
authored
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]>
1 parent 51ea8dd commit 5d57f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/release.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func getReleaseAttachments(e Engine, rels ...*Release) (err error) {
282282

283283
// Select attachments
284284
err = e.
285-
Asc("release_id").
285+
Asc("release_id", "name").
286286
In("release_id", sortedRels.ID).
287287
Find(&attachments, Attachment{})
288288
if err != nil {

0 commit comments

Comments
 (0)