diff --git a/pkg/api/index.go b/pkg/api/index.go index 014555785e1..cce70a15503 100644 --- a/pkg/api/index.go +++ b/pkg/api/index.go @@ -123,6 +123,11 @@ func (hs *HTTPServer) getAppLinks(c *models.ReqContext) ([]*dtos.NavLink, error) } } + if len(appLinks) > 0 { + sort.SliceStable(appLinks, func(i, j int) bool { + return appLinks[i].Text < appLinks[j].Text + }) + } return appLinks, nil }