mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 10:20:29 -06:00
ordered user orgs alphabeticaly fixes #11556
This commit is contained in:
parent
55d262655a
commit
9ad8a77a21
@ -333,6 +333,7 @@ func GetUserOrgList(query *m.GetUserOrgListQuery) error {
|
||||
sess.Join("INNER", "org", "org_user.org_id=org.id")
|
||||
sess.Where("org_user.user_id=?", query.UserId)
|
||||
sess.Cols("org.name", "org_user.role", "org_user.org_id")
|
||||
sess.OrderBy("org.name")
|
||||
err := sess.Find(&query.Result)
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user