diff --git a/src/models/user.go b/src/models/user.go index e453c8f9..9923fb0a 100644 --- a/src/models/user.go +++ b/src/models/user.go @@ -462,7 +462,7 @@ func (u *User) BusiGroups(limit int, query string, all ...bool) ([]BusiGroup, er return lst, err } - err = session.Where("id=?", t.GroupId).Find(&lst).Error + err = DB().Order("name").Limit(limit).Where("id=?", t.GroupId).Find(&lst).Error } return lst, err