]> source.dussan.org Git - gitea.git/commitdiff
sort release attachments by name (#15008)
authorNorwin <noerw@users.noreply.github.com>
Wed, 17 Mar 2021 09:25:49 +0000 (09:25 +0000)
committerGitHub <noreply@github.com>
Wed, 17 Mar 2021 09:25:49 +0000 (11:25 +0200)
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
models/release.go

index 960509a16ce52bde90e0767d5772aa66c9a2070b..751d08d4d89c422e6b4d81edd40969fbd326df7b 100644 (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 {