feat: 网站列表按照名称排序 (#5448)

Refs https://github.com/1Panel-dev/1Panel/issues/5437
This commit is contained in:
zhengkunwang 2024-06-13 22:16:37 +08:00 committed by GitHub
parent 68ac4341ac
commit 8a1b0d6913
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -166,7 +166,7 @@ func (w WebsiteService) PageWebsite(req request.WebsiteSearch) (int64, []respons
func (w WebsiteService) GetWebsites() ([]response.WebsiteDTO, error) {
var websiteDTOs []response.WebsiteDTO
websites, err := websiteRepo.List()
websites, err := websiteRepo.List(commonRepo.WithOrderRuleBy("primary_domain", "ascending"))
if err != nil {
return nil, err
}