diff options
author | Norwin <noerw@users.noreply.github.com> | 2021-03-17 09:25:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 11:25:49 +0200 |
commit | 5d57f4bcb885236865126caec7ab3a74157e4aea (patch) | |
tree | 108a88c506a4cb277c4094c54b692e9f25ec417a /models | |
parent | 51ea8dd44476acdfa21262e5e08f383b4661a065 (diff) | |
download | gitea-5d57f4bcb885236865126caec7ab3a74157e4aea.tar.gz gitea-5d57f4bcb885236865126caec7ab3a74157e4aea.zip |
sort release attachments by name (#15008)
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'models')
-rw-r--r-- | models/release.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |