Sort users by login (#3891)

This commit is contained in:
6543 2024-07-12 11:27:37 -07:00 committed by GitHub
parent 90f519caf3
commit bc02d376b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,7 +46,7 @@ func (s storage) getUserLogin(sess *xorm.Session, login string) (*model.User, er
func (s storage) GetUserList(p *model.ListOptions) ([]*model.User, error) {
var users []*model.User
return users, s.paginate(p).OrderBy("id").Find(&users)
return users, s.paginate(p).OrderBy("login").Find(&users)
}
func (s storage) GetUserCount() (int64, error) {