diff --git a/backend/app/service/app_install.go b/backend/app/service/app_install.go index 3efe534ab..1296889cd 100644 --- a/backend/app/service/app_install.go +++ b/backend/app/service/app_install.go @@ -8,6 +8,7 @@ import ( "os" "path" "reflect" + "sort" "strconv" "strings" @@ -505,6 +506,9 @@ func (a *AppInstallService) GetUpdateVersions(installId uint) ([]dto.AppVersion, }) } } + sort.Slice(versions, func(i, j int) bool { + return common.CompareVersion(versions[i].Version, versions[j].Version) + }) return versions, nil }