mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
NavBar: Order App plugins alphabetically (#40078)
* NavBar: Order App plugins alphabetically * Update pkg/api/index.go Co-authored-by: Will Browne <wbrowne@users.noreply.github.com> Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
This commit is contained in:
parent
d3815a851c
commit
009a26264c
@ -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
|
return appLinks, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user