From bc02d376b2a440064cd0d55c702ac4919bfd0f35 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 12 Jul 2024 11:27:37 -0700 Subject: [PATCH] Sort users by login (#3891) --- server/store/datastore/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/store/datastore/user.go b/server/store/datastore/user.go index 8db676f1d..67427190c 100644 --- a/server/store/datastore/user.go +++ b/server/store/datastore/user.go @@ -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) {